Class Geometry
java.lang.Object
com.treemap.swing.originalfastvoronoi.j2d.Geometry
Helper class for sum small computations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublecrossProduct(Point2D p1, Point2D p2) static doubledistancePointToSegment(double x1, double y1, double x2, double y2, double x3, double y3) * Shortest Distance from a Point p3 to a line segment p1-p2 http://local.wasp.uwa.edu.au/~pbourke/geometry/pointline/
-
Constructor Details
-
Geometry
public Geometry()
-
-
Method Details
-
crossProduct
-
distancePointToSegment
public static double distancePointToSegment(double x1, double y1, double x2, double y2, double x3, double y3) * Shortest Distance from a Point p3 to a line segment p1-p2 http://local.wasp.uwa.edu.au/~pbourke/geometry/pointline/- Parameters:
x1- x value of first segment pointy1- y value of first segment pointx2- x value of second segment pointy2- y value of second segment pointx3- x value of point we are interested iny3- y value of point we are interested in- Returns:
-