Function fyrox_math::get_closest_point_triangles
source · pub fn get_closest_point_triangles<P>(
points: &[P],
triangles: &[TriangleDefinition],
triangle_indices: impl Iterator<Item = usize>,
point: Vector3<f32>
) -> Option<(usize, usize)>where
P: PositionProvider,
Expand description
Returns a tuple of (point index; triangle index) closest to the given point.