public LineSegment(Point start, Point end) { Start = start; End = end; Length = Math.Sqrt(Math.Pow(start.X - end.X, 2) + Math.Pow(start.Y - end.Y, 2)); }