A Vector3d normal with a Length distance from origin.
Example #1
0
        /// <summary>Get the intersection point between the three planes.</summary>
        public void Intersect(ref Plane3 b, ref Plane3 c, out Vector3 result)
        {
            Vector3d v1, v2, v3;
            Vector3d cross;

            b.Normal.Cross(ref c.Normal, out cross);

            var f = -Normal.Dot(ref cross);

            v1 = cross * (Distance).InUniversal;

            c.Normal.Cross(ref Normal, out cross);
            v2 = cross * (b.Distance).InUniversal;

            Normal.Cross(ref b.Normal, out cross);
            v3 = cross * (c.Distance).InUniversal;

            result.X = Length.Universal((v1.X + v2.X + v3.X) / f);
            result.Y = Length.Universal((v1.Y + v2.Y + v3.Y) / f);
            result.Z = Length.Universal((v1.Z + v2.Z + v3.Z) / f);

            return;
        }