Beispiel #1
0
        // Token: 0x0600017D RID: 381 RVA: 0x00007400 File Offset: 0x00005600
        public static Segment3 ShortestSegmentTo(this Rectangle3 rectangle, Rectangle3 other)
        {
            DistanceRectangle3Rectangle3 distanceRectangle3Rectangle = new DistanceRectangle3Rectangle3(rectangle, other);

            return(new Segment3(distanceRectangle3Rectangle.ClosestPoint0, distanceRectangle3Rectangle.ClosestPoint1));
        }
Beispiel #2
0
        // Token: 0x0600017B RID: 379 RVA: 0x000073C0 File Offset: 0x000055C0
        public static double DistanceTo(this Rectangle3 rectangle, Rectangle3 other)
        {
            DistanceRectangle3Rectangle3 distanceRectangle3Rectangle = new DistanceRectangle3Rectangle3(rectangle, other);

            return(distanceRectangle3Rectangle.Distance);
        }
Beispiel #3
0
        // Token: 0x0600017C RID: 380 RVA: 0x000073E0 File Offset: 0x000055E0
        public static Vector3 ClosestPointTo(this Rectangle3 rectangle, Rectangle3 other)
        {
            DistanceRectangle3Rectangle3 distanceRectangle3Rectangle = new DistanceRectangle3Rectangle3(rectangle, other);

            return(distanceRectangle3Rectangle.ClosestPoint0);
        }