public class GeometryUtil extends Object
| Constructor and Description |
|---|
GeometryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static double |
ptSegDistSq(double x1,
double y1,
double x2,
double y2,
double px,
double py)
Returns the square of the distance from a point to a line segment.
|
public static double ptSegDistSq(double x1,
double y1,
double x2,
double y2,
double px,
double py)
x1 - the X coordinate of the start point of the
specified line segmenty1 - the Y coordinate of the start point of the
specified line segmentx2 - the X coordinate of the end point of the
specified line segmenty2 - the Y coordinate of the end point of the
specified line segmentpx - the X coordinate of the specified point being
measured against the specified line segmentpy - the Y coordinate of the specified point being
measured against the specified line segmentCopyright © 2012–2016 JBoss by Red Hat. All rights reserved.