/// <summary> /// Returns the perimeter. /// </summary> public double GetPerimeter() { return(P1.Distance(P2) + P2.Distance(P3) + P3.Distance(P1)); }