public Point(PointStruct point) { this.X = point.X; this.Y = point.Y; }
public GraphNode(TriangleNet.Topology.Triangle triangle) { this.triangle = triangle; this.center = new PointStruct(triangle.GetCentroid()); }
public double Distance(PointStruct p2) { return(Math.Sqrt(Math.Pow((p2.X - X), 2) + Math.Pow((p2.Y - Y), 2))); }