BEPUutilities.Toolbox.GetSegmentPlaneIntersection C# (CSharp) Метод

GetSegmentPlaneIntersection() публичный статический Метод

Finds the intersection between the given segment and the given plane.
public static GetSegmentPlaneIntersection ( System.Vector3 a, System.Vector3 b, BEPUutilities.Plane p, System.Vector3 &q ) : bool
a System.Vector3 First endpoint of segment.
b System.Vector3 Second enpoint of segment.
p BEPUutilities.Plane Plane for comparison.
q System.Vector3 Intersection point.
Результат bool
        public static bool GetSegmentPlaneIntersection(Vector3 a, Vector3 b, Plane p, out Vector3 q)
        {
            float t;
            return GetLinePlaneIntersection(ref a, ref b, ref p, out t, out q) && t >= 0 && t <= 1;
        }

Same methods

Toolbox::GetSegmentPlaneIntersection ( System.Vector3 a, System.Vector3 b, BEPUutilities.Plane p, float &t, System.Vector3 &q ) : bool
Toolbox::GetSegmentPlaneIntersection ( System.Vector3 a, System.Vector3 b, System.Vector3 d, System.Vector3 e, System.Vector3 f, System.Vector3 &q ) : bool