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