org.apache.lucene.spatial.geometry.shape
public class LineSegment extends java.lang.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.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.