Exemple #1
0
 public static double Angle(PolyLineVertex v1, PolyLineVertex v2)
 {
     return(Math.Sqrt(Math.Pow(v1.X - v2.X, 2.0) + Math.Pow(v1.Y - v2.Y, 2.0)));
 }
Exemple #2
0
 public static double Angle(PolyLineVertex v)
 {
     return(Math.Atan2(v.Y, v.X));
 }
Exemple #3
0
 public static double Distance(PolyLineVertex v1, PolyLineVertex v2)
 {
     return(Math.Atan2(v2.Y - v1.Y, v2.X - v1.X));
 }