@Deprecated public class LineSegment extends Object
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Modifier and Type | Field | Description |
---|---|---|
Point2D |
A |
Deprecated.
|
Point2D |
B |
Deprecated.
|
Constructor | Description |
---|---|
LineSegment() |
Deprecated.
|
LineSegment(Point2D p1,
Point2D p2) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
public double distance(Point2D P, Point2D closestPt)
P
- Test point.closestPt
- (Return) Closest point on the segment to c.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.