Пример #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)));
 }
Пример #2
0
 public static double Angle(PolyLineVertex v)
 {
     return(Math.Atan2(v.Y, v.X));
 }
Пример #3
0
 public static double Distance(PolyLineVertex v1, PolyLineVertex v2)
 {
     return(Math.Atan2(v2.Y - v1.Y, v2.X - v1.X));
 }