Java Geometry Algorithm dx(Point a, Point b)

Here you can find the source of dx(Point a, Point b)

Description

dx

License

Apache License

Declaration

public static int dx(Point a, Point b) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.awt.Point;

public class Main {
    public static int dx(Point a, Point b) {
        return Math.abs(a.x - b.x);
    }//  w w  w .ja v  a 2 s  . com
}

Related

  1. dot(@Nonnull Point2D pA, @Nonnull Point2D pB)
  2. dot(final Point2D a, final Point2D b)
  3. dot(Point a, Point b, Point c)
  4. dotNorm(final Point2D a, final Point2D b)
  5. drag(Robot robot, Point startPoint, Point endPoint, int button)
  6. edge(Collection points)
  7. extendLine(Point2D p0, Point2D p1, double toLength)
  8. findArea(Point2D p1, Point2D p2, Point2D p3)
  9. findDimension(Point2D[] pts)