getLength method
Computes the length of the line segment. @return the length of the line segment
Implementation
double getLength() {
return p0.distance(p1);
}
Computes the length of the line segment. @return the length of the line segment
double getLength() {
return p0.distance(p1);
}