示例#1
0
        // Token: 0x06000413 RID: 1043 RVA: 0x00012598 File Offset: 0x00010798
        public static Vector3?IntersectionWith(this Segment3 segment, Plane3 plane)
        {
            IntersectionSegment3Plane3 intersectionSegment3Plane = new IntersectionSegment3Plane3(segment, plane);

            if (intersectionSegment3Plane.Find() && intersectionSegment3Plane.IntersectionType != Intersection.Type.IT_EMPTY)
            {
                return(new Vector3?(segment.Origin + intersectionSegment3Plane.SegmentParameter * segment.Direction));
            }
            return(null);
        }
示例#2
0
        // Token: 0x06000412 RID: 1042 RVA: 0x00012578 File Offset: 0x00010778
        public static bool Intersects(this Segment3 segment, Plane3 plane)
        {
            IntersectionSegment3Plane3 intersectionSegment3Plane = new IntersectionSegment3Plane3(segment, plane);

            return(intersectionSegment3Plane.Test());
        }