Example #1
0
        // Token: 0x06000179 RID: 377 RVA: 0x00007374 File Offset: 0x00005574
        public static Vector3 ClosestPointTo(this Rectangle3 rectangle, Ray3 ray)
        {
            DistanceRay3Rectangle3 distanceRay3Rectangle = new DistanceRay3Rectangle3(ray, rectangle);

            return(distanceRay3Rectangle.ClosestPointOnRectangle);
        }
Example #2
0
        // Token: 0x0600017A RID: 378 RVA: 0x00007394 File Offset: 0x00005594
        public static Segment3 ShortestSegmentTo(this Rectangle3 rectangle, Ray3 ray)
        {
            DistanceRay3Rectangle3 distanceRay3Rectangle = new DistanceRay3Rectangle3(ray, rectangle);

            return(new Segment3(distanceRay3Rectangle.ClosestPointOnRectangle, distanceRay3Rectangle.ClosestPointOnRay));
        }
Example #3
0
        // Token: 0x06000124 RID: 292 RVA: 0x00006348 File Offset: 0x00004548
        public static double DistanceTo(this Ray3 ray3, Rectangle3 rectangle3)
        {
            DistanceRay3Rectangle3 distanceRay3Rectangle = new DistanceRay3Rectangle3(ray3, rectangle3);

            return(distanceRay3Rectangle.Distance);
        }