Function Polygon.ClosestPointOnTriangleXZ

ClosestPointOnTriangleXZ (Vector3 a, Vector3 b, Vector3 c, Vector3 p)

Closest point on the triangle abc to the point p when seen from above.

Public Static
Vector3 ClosestPointOnTriangleXZ (

Vector3

a

Vector3

b

Vector3

c

Vector3

p

)

Closest point on the triangle abc to the point p when seen from above.

See

'Real Time Collision Detection' by Christer Ericson, chapter 5.1, page 141