BEPUutilities.Toolbox.GetClosestPointsBetweenSegments C# (CSharp) Method

GetClosestPointsBetweenSegments() public static method

Computes closest points c1 and c2 betwen segments p1q1 and p2q2.
public static GetClosestPointsBetweenSegments ( System.Vector3 p1, System.Vector3 q1, System.Vector3 p2, System.Vector3 q2, System.Vector3 &c1, System.Vector3 &c2 ) : void
p1 System.Vector3 First point of first segment.
q1 System.Vector3 Second point of first segment.
p2 System.Vector3 First point of second segment.
q2 System.Vector3 Second point of second segment.
c1 System.Vector3 Closest point on first segment.
c2 System.Vector3 Closest point on second segment.
return void
        public static void GetClosestPointsBetweenSegments(Vector3 p1, Vector3 q1, Vector3 p2, Vector3 q2, out Vector3 c1, out Vector3 c2)
        {
            float s, t;
            GetClosestPointsBetweenSegments(ref p1, ref q1, ref p2, ref q2, out s, out t, out c1, out c2);
        }

Same methods

Toolbox::GetClosestPointsBetweenSegments ( System.Vector3 &p1, System.Vector3 &q1, System.Vector3 &p2, System.Vector3 &q2, float &s, float &t, System.Vector3 &c1, System.Vector3 &c2 ) : void