findClosest2

Finds the closest 2 points to the given point.

Param: point = The point to find the closest 2 points to mesh = The mesh to index.

@nogc nothrow pure
ptrdiff_t[2]
findClosest2
(
inout(vec2) point
,
inout(vec2)[] mesh
)

Return Value

Type: ptrdiff_t[2]

The vertex indices of the mesh of the 2 closest points to the given point, or -1 if there's fewer than 2 points in the mesh.

Meta