Exemple #1
0
 /// <summary>
 /// Returns a distance to the closest point on the segment
 /// </summary>
 public static float PointSegment(Vector2 point, Vector2 segmentA, Vector2 segmentB)
 {
     return(Vector2.Distance(point, Closest.PointSegment(point, segmentA, segmentB)));
 }
 /// <summary>
 /// Returns a distance to the closest point on the segment
 /// </summary>
 public static float PointSegment(Vector3 point, Segment3 segment)
 {
     return(Vector3.Distance(point, Closest.PointSegment(point, segment)));
 }