Ejemplo n.º 1
0
        // Token: 0x0600001D RID: 29 RVA: 0x000025B4 File Offset: 0x000007B4
        public static double DistanceTo(this Vector2 vector, Triangle2 triangle)
        {
            DistanceVector2Triangle2 distanceVector2Triangle = new DistanceVector2Triangle2(vector, triangle);

            return(distanceVector2Triangle.Distance);
        }
Ejemplo n.º 2
0
        // Token: 0x0600001E RID: 30 RVA: 0x000025D4 File Offset: 0x000007D4
        public static Segment2 ShortestSegmentTo(this Vector2 vector, Triangle2 triangle)
        {
            DistanceVector2Triangle2 distanceVector2Triangle = new DistanceVector2Triangle2(vector, triangle);

            return(new Segment2(distanceVector2Triangle.ClosestPointOnVector, distanceVector2Triangle.ClosestPointOnTriangle));
        }
Ejemplo n.º 3
0
        // Token: 0x06000014 RID: 20 RVA: 0x000024A0 File Offset: 0x000006A0
        public static Vector2 ClosestPointTo(this Triangle2 triangle, Vector2 vector)
        {
            DistanceVector2Triangle2 distanceVector2Triangle = new DistanceVector2Triangle2(vector, triangle);

            return(distanceVector2Triangle.ClosestPointOnTriangle);
        }