TerrainDisplay.Collision.Intersection.IntersectPlanes C# (CSharp) Method

IntersectPlanes() public static method

public static IntersectPlanes ( Plane p1, Plane p2, Plane p3, System.Vector3 &p ) : bool
p1 Plane
p2 Plane
p3 Plane
p System.Vector3
return bool
        public static bool IntersectPlanes(Plane p1, Plane p2, Plane p3, ref Vector3 p)
        {
            var vector = Vector3.Cross(p2.Normal, p3.Normal);
            var num = Vector3.Dot(p1.Normal, vector);
            if (Math.Abs(num) < 0.0001f)
            {
                return false;
            }
            p = (((p1.D * vector) + Vector3.Cross(p1.Normal, ((p3.D * p2.Normal) - (p2.D * p3.Normal)))) / num);
            return true;
        }

Same methods

Intersection::IntersectPlanes ( Plane p1, Plane p2, System.Vector3 &p, System.Vector3 &d ) : bool