示例#1
0
文件: Point2d.cs 项目: bonomali/Ibasa
 /// <summary>
 /// Returns the distance between two points.
 /// </summary>
 /// <param name="value1">The first point.</param>
 /// <param name="value2">The second point.</param>
 /// <returns>The distance between value1 and value2.</returns>
 public static double Distance(Point2d value1, Point2d value2)
 {
     return(Vector.Absolute(value2 - value1));
 }
示例#2
0
文件: Point3f.cs 项目: bonomali/Ibasa
 /// <summary>
 /// Returns the distance between two points.
 /// </summary>
 /// <param name="value1">The first point.</param>
 /// <param name="value2">The second point.</param>
 /// <returns>The distance between value1 and value2.</returns>
 public static float Distance(Point3f value1, Point3f value2)
 {
     return(Vector.Absolute(value2 - value1));
 }