Function pack_vector_upper
Source pub fn pack_vector_upper(
vector: Vector3D,
non_finite: &str,
out_of_range: &str,
) -> Result<[f32; 3], String>
Expand description
Converts a vector to three f32 components, rounding every component
toward positive infinity.
§Arguments
Vector3D - The vector to narrow.
&str - The error message for a non-finite component.
§Returns
Result<[f32; 3], String> - The narrowed components, or the first
applicable error.