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

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

Finds the intersection between the given segment and the given plane defined by three points.
public static GetSegmentPlaneIntersection ( System.Vector3 a, System.Vector3 b, System.Vector3 d, System.Vector3 e, System.Vector3 f, System.Vector3 &q ) : bool
a System.Vector3 First endpoint of segment.
b System.Vector3 Second endpoint of segment.
d System.Vector3 First vertex of a triangle which lies on the plane.
e System.Vector3 Second vertex of a triangle which lies on the plane.
f System.Vector3 Third vertex of a triangle which lies on the plane.
q System.Vector3 Intersection point.
Результат bool
        public static bool GetSegmentPlaneIntersection(Vector3 a, Vector3 b, Vector3 d, Vector3 e, Vector3 f, out Vector3 q)
        {
            Plane p;
            p.Normal = Vector3.Cross(e - d, f - d);
            p.D = Vector3.Dot(p.Normal, d);
            float t;
            return GetSegmentPlaneIntersection(a, b, p, out t, out q);
        }

Same methods

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