public double getLength() { int sumOfSquares = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);  return Math.sqrt((double)sumOfSquares);
public PathLength getLength() { return length;
    public double getLength() {        int sumOfSquares = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);        return Math.sqrt((double)sumOfSquares);    }