コード例 #1
0
        // Token: 0x06000174 RID: 372 RVA: 0x000072EC File Offset: 0x000054EC
        public static Segment3 ShortestSegmentTo(this Rectangle3 rectangle, Segment3 segment)
        {
            DistanceSegment3Rectangle3 distanceSegment3Rectangle = new DistanceSegment3Rectangle3(segment, rectangle);

            return(new Segment3(distanceSegment3Rectangle.ClosestPointOnRectangle, distanceSegment3Rectangle.ClosestPointOnSegment));
        }
コード例 #2
0
ファイル: DistanceSegment3.cs プロジェクト: mh-soft/mh-master
        // Token: 0x06000195 RID: 405 RVA: 0x00007814 File Offset: 0x00005A14
        public static Vector3 ClosestPointTo(this Segment3 segment3, Rectangle3 rectangle3)
        {
            DistanceSegment3Rectangle3 distanceSegment3Rectangle = new DistanceSegment3Rectangle3(segment3, rectangle3);

            return(distanceSegment3Rectangle.ClosestPointOnSegment);
        }
コード例 #3
0
        // Token: 0x06000173 RID: 371 RVA: 0x000072CC File Offset: 0x000054CC
        public static Vector3 ClosestPointTo(this Rectangle3 rectangle, Segment3 segment)
        {
            DistanceSegment3Rectangle3 distanceSegment3Rectangle = new DistanceSegment3Rectangle3(segment, rectangle);

            return(distanceSegment3Rectangle.ClosestPointOnRectangle);
        }
コード例 #4
0
ファイル: DistanceSegment3.cs プロジェクト: mh-soft/mh-master
        // Token: 0x06000194 RID: 404 RVA: 0x000077F4 File Offset: 0x000059F4
        public static double DistanceTo(this Segment3 segment3, Rectangle3 rectangle3)
        {
            DistanceSegment3Rectangle3 distanceSegment3Rectangle = new DistanceSegment3Rectangle3(segment3, rectangle3);

            return(distanceSegment3Rectangle.Distance);
        }