Example #1
0
        // Token: 0x0600011E RID: 286 RVA: 0x000061E0 File Offset: 0x000043E0
        public static double DistanceTo(this Ray3 ray3, AxisAlignedBox3 axisAlignedBox3)
        {
            Box3             box             = new Box3(axisAlignedBox3.Center, UnitVector3.UnitX, UnitVector3.UnitY, UnitVector3.UnitZ, axisAlignedBox3.ExtentX, axisAlignedBox3.ExtentY, axisAlignedBox3.ExtentZ);
            DistanceRay3Box3 distanceRay3Box = new DistanceRay3Box3(ray3, box);

            return(distanceRay3Box.Distance);
        }
Example #2
0
        // Token: 0x06000120 RID: 288 RVA: 0x00006280 File Offset: 0x00004480
        public static Segment3 ShortestSegmentTo(this Ray3 ray3, AxisAlignedBox3 axisAlignedBox3)
        {
            Box3             box             = new Box3(axisAlignedBox3.Center, UnitVector3.UnitX, UnitVector3.UnitY, UnitVector3.UnitZ, axisAlignedBox3.ExtentX, axisAlignedBox3.ExtentY, axisAlignedBox3.ExtentZ);
            DistanceRay3Box3 distanceRay3Box = new DistanceRay3Box3(ray3, box);

            return(new Segment3(distanceRay3Box.ClosestPointOnRay, distanceRay3Box.ClosestPointOnBox));
        }
Example #3
0
        // Token: 0x06000011 RID: 17 RVA: 0x000023EC File Offset: 0x000005EC
        public static Vector3 ClosestPointTo(this AxisAlignedBox3 axisAlignedBox3, Ray3 ray3)
        {
            Box3             box             = new Box3(axisAlignedBox3.Center, UnitVector3.UnitX, UnitVector3.UnitY, UnitVector3.UnitZ, axisAlignedBox3.ExtentX, axisAlignedBox3.ExtentY, axisAlignedBox3.ExtentZ);
            DistanceRay3Box3 distanceRay3Box = new DistanceRay3Box3(ray3, box);

            return(distanceRay3Box.ClosestPointOnBox);
        }
Example #4
0
        // Token: 0x06000038 RID: 56 RVA: 0x00002A9C File Offset: 0x00000C9C
        public static Segment3 ShortestSegmentTo(this Box3 box3, Ray3 ray3)
        {
            DistanceRay3Box3 distanceRay3Box = new DistanceRay3Box3(ray3, box3);

            return(new Segment3(distanceRay3Box.ClosestPointOnBox, distanceRay3Box.ClosestPointOnRay));
        }
Example #5
0
        // Token: 0x06000037 RID: 55 RVA: 0x00002A7C File Offset: 0x00000C7C
        public static Vector3 ClosestPointTo(this Box3 box3, Ray3 ray3)
        {
            DistanceRay3Box3 distanceRay3Box = new DistanceRay3Box3(ray3, box3);

            return(distanceRay3Box.ClosestPointOnBox);
        }
Example #6
0
        // Token: 0x0600011B RID: 283 RVA: 0x00006174 File Offset: 0x00004374
        public static double DistanceTo(this Ray3 ray3, Box3 box3)
        {
            DistanceRay3Box3 distanceRay3Box = new DistanceRay3Box3(ray3, box3);

            return(distanceRay3Box.Distance);
        }