Merge pull request #1248 from AlexanderEkdahl/patch-1

Remove unnecessary normalization in `Rotation3::face_towards`
This commit is contained in:
Sébastien Crozet 2023-07-08 15:15:54 +02:00 committed by GitHub
commit b6abfee24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -478,9 +478,10 @@ where
SB: Storage<T, U3>,
SC: Storage<T, U3>,
{
// GramSchmidt 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::<T, 3, 3>::new(
xaxis.x.clone(),