getLength method

double getLength()

Computes the length of the line segment. @return the length of the line segment

Implementation

double getLength() {
  return p0.distance(p1);
}