diff --git a/src/geometry/rotation_specialization.rs b/src/geometry/rotation_specialization.rs index ae954dd2..eecc9b21 100644 --- a/src/geometry/rotation_specialization.rs +++ b/src/geometry/rotation_specialization.rs @@ -478,9 +478,10 @@ where SB: Storage, SC: Storage, { + // Gram–Schmidt process let zaxis = dir.normalize(); let xaxis = up.cross(&zaxis).normalize(); - let yaxis = zaxis.cross(&xaxis).normalize(); + let yaxis = zaxis.cross(&xaxis); Self::from_matrix_unchecked(SMatrix::::new( xaxis.x.clone(),