コード例 #1
0
        // Token: 0x06000447 RID: 1095 RVA: 0x00013838 File Offset: 0x00011A38
        public static bool Intersects(this Triangle3 triangle, AxisAlignedBox3 axisAlignedBox)
        {
            Box3 box = new Box3(axisAlignedBox.Center, UnitVector3.UnitX, UnitVector3.UnitY, UnitVector3.UnitZ, axisAlignedBox.ExtentX, axisAlignedBox.ExtentY, axisAlignedBox.ExtentZ);
            IntersectionTriangle3Box3 intersectionTriangle3Box = new IntersectionTriangle3Box3(triangle, box);

            return(intersectionTriangle3Box.Test());
        }
コード例 #2
0
        // Token: 0x06000446 RID: 1094 RVA: 0x000137EC File Offset: 0x000119EC
        public static ICollection <Vector3> IntersectionPointsWith(this Triangle3 triangle, Box3 box)
        {
            IntersectionTriangle3Box3 intersectionTriangle3Box = new IntersectionTriangle3Box3(triangle, box);

            intersectionTriangle3Box.Find();
            List <Vector3> list = new List <Vector3>();

            for (int i = 0; i < intersectionTriangle3Box.Quantity; i++)
            {
                list.Add(intersectionTriangle3Box.Points[i]);
            }
            return(list);
        }
コード例 #3
0
        // Token: 0x06000448 RID: 1096 RVA: 0x00013888 File Offset: 0x00011A88
        public static ICollection <Vector3> IntersectionPointsWith(this Triangle3 triangle, AxisAlignedBox3 axisAlignedBox)
        {
            Box3 box = new Box3(axisAlignedBox.Center, UnitVector3.UnitX, UnitVector3.UnitY, UnitVector3.UnitZ, axisAlignedBox.ExtentX, axisAlignedBox.ExtentY, axisAlignedBox.ExtentZ);
            IntersectionTriangle3Box3 intersectionTriangle3Box = new IntersectionTriangle3Box3(triangle, box);

            intersectionTriangle3Box.Find();
            List <Vector3> list = new List <Vector3>();

            for (int i = 0; i < intersectionTriangle3Box.Quantity; i++)
            {
                list.Add(intersectionTriangle3Box.Points[i]);
            }
            return(list);
        }
コード例 #4
0
        // Token: 0x06000445 RID: 1093 RVA: 0x000137CC File Offset: 0x000119CC
        public static bool Intersects(this Triangle3 triangle, Box3 box)
        {
            IntersectionTriangle3Box3 intersectionTriangle3Box = new IntersectionTriangle3Box3(triangle, box);

            return(intersectionTriangle3Box.Test());
        }