Function pack_vector
Source pub fn pack_vector(
vector: Vector3D,
non_finite: &str,
out_of_range: &str,
) -> Result<[f32; 3], String>
Expand description
Converts a vector to three f32 components, rounding to nearest.
§Arguments
Vector3D - The vector to pack.
&str - The error message used for a non-finite component.
§Returns
Result<[f32; 3], String> - The packed components, or the first
rejection reason.