Expand description
The point of a segment or a triangle nearest a given point: one implementation over plain coordinates, in single or double precision, a segment in any number of dimensions and a triangle in three.
Traits§
- Real
- A coordinate the queries work in:
f32orf64.
Functions§
- nearest_
on_ segment - The point of the segment from
atobnearestp;afor a segment with no length. - nearest_
on_ triangle - The point of triangle
abcnearestp. A triangle with no area answers the nearest point of its sides. - segment_
param - How far along the segment from
atobits point nearestplies, from 0 atato 1 atb. A segment with no length answers 0, its start.