public class LineSegment extends Object
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Constructor and Description |
---|
LineSegment() |
LineSegment(Point2D p1,
Point2D p2) |
public double distance(Point2D P, Point2D closestPt)
P
- Test point.closestPt
- (Return) Closest point on the segment to c.Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.