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