|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.spatial.geometry.shape.LineSegment
@Deprecated public class LineSegment
2d line segment.
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Field Summary | |
---|---|
Point2D |
A
Deprecated. |
Point2D |
B
Deprecated. |
Constructor Summary | |
---|---|
LineSegment()
Deprecated. |
|
LineSegment(Point2D p1,
Point2D p2)
Deprecated. |
Method Summary | |
---|---|
double |
distance(Point2D P,
Point2D closestPt)
Deprecated. Finds the distance of a specified point from the line segment and the closest point on the segment to the specified point. |
boolean |
equals(Object obj)
Deprecated. |
int |
hashCode()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Point2D A
public final Point2D B
Constructor Detail |
---|
public LineSegment()
public LineSegment(Point2D p1, Point2D p2)
Method Detail |
---|
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 Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |