Community
Participate
Working Groups
/**
* Calculates the distance between the two {@link Point}s representing the
* start and end points of this {@link Line}
*
* @see Point#getDistance(Point)
* @return the distance from P1 to P2
*/
public double getLength() {
return getP1().getDistance(getP2());
}
// TODO: add specialized getOverlap()