Пример #1
0
        // Token: 0x0600040F RID: 1039 RVA: 0x00012420 File Offset: 0x00010620
        public static bool Intersects(this Segment3 segment, AxisAlignedBox3 axisAlignedBox)
        {
            Box3 box = new Box3(axisAlignedBox.Center, UnitVector3.UnitX, UnitVector3.UnitY, UnitVector3.UnitZ, axisAlignedBox.ExtentX, axisAlignedBox.ExtentY, axisAlignedBox.ExtentZ);
            IntersectionSegment3Box3 intersectionSegment3Box = new IntersectionSegment3Box3(segment, box, true);

            return(intersectionSegment3Box.Test());
        }
Пример #2
0
        // Token: 0x0600040C RID: 1036 RVA: 0x0001236C File Offset: 0x0001056C
        public static bool Intersects(this Segment3 segment, Box3 box)
        {
            IntersectionSegment3Box3 intersectionSegment3Box = new IntersectionSegment3Box3(segment, box, true);

            return(intersectionSegment3Box.Test());
        }