vm_geom3_gap struct

Signed point-triangle gap and the two closest points.

gap is positive when the query lies on the side of the triangle normal (b - a) × (c - a).

Public variables

bool ok
false if the triangle is degenerate.
vm_float_t gap
Signed gap.
vector3 on_tri
Closest point on the triangle.
vector3 query
The query point.