Beispiel #1
0
 /// <summary>
 /// Odległość punktów
 /// </summary>
 /// <param name="p1"></param>
 /// <param name="p2"></param>
 /// <returns></returns>
 public static double PointDistance(PointD p1, PointD p2)
 {
     return(Wektor.PointDistance(p1.X, p1.Y, p2.X, p2.Y));
 }
Beispiel #2
0
 /// <summary>
 /// Odległość punktów
 /// </summary>
 /// <param name="x1"></param>
 /// <param name="y1"></param>
 /// <param name="x2"></param>
 /// <param name="y2"></param>
 /// <returns></returns>
 public static double PointDistance(double x1, double y1, double x2, double y2)
 {
     return((double)Math.Sqrt(Wektor.PointDistance2(x1, y1, x2, y2)));
 }
Beispiel #3
0
 public static double LenWektor(PointD v)
 {
     return(Wektor.PointDistance(v.X, v.Y, 0, 0));
 }