public static point_t Parse(string str) { string[] strToParse = str.Split(' '); point_t result = new point_t(float.Parse(strToParse[0]), float.Parse(strToParse[1])); return(result); }
public void AddPoint(point_t point) { points.Add(point); }
public double GetDistance(point_t other) { return(Math.Sqrt((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y))); }