Skip to main content

next_up_vector

Function next_up_vector 

Source
pub fn next_up_vector(vec: RVector) -> Vec3
Expand description

Returns a single-precision vector with each component being at least as large as the corresponding component of the input vector.

This is used for converting double-precision vectors to single-precision vectors for the maximum coordinates of bounding boxes, where they must contain the original shape even after precision loss far from the origin.