예제 #1
0
        // Token: 0x060003C4 RID: 964 RVA: 0x00010D80 File Offset: 0x0000EF80
        public static Vector3?IntersectionWith(this Ray3 ray, Plane3 plane)
        {
            IntersectionRay3Plane3 intersectionRay3Plane = new IntersectionRay3Plane3(ray, plane);

            if (intersectionRay3Plane.Find() && intersectionRay3Plane.IntersectionType != Intersection.Type.IT_EMPTY)
            {
                return(new Vector3?(ray.Origin + intersectionRay3Plane.RayParameter * ray.Direction));
            }
            return(null);
        }
예제 #2
0
        // Token: 0x060003C3 RID: 963 RVA: 0x00010D60 File Offset: 0x0000EF60
        public static bool Intersects(this Ray3 ray, Plane3 plane)
        {
            IntersectionRay3Plane3 intersectionRay3Plane = new IntersectionRay3Plane3(ray, plane);

            return(intersectionRay3Plane.Test());
        }