Merge pull request #1248 from AlexanderEkdahl/patch-1
Remove unnecessary normalization in `Rotation3::face_towards`
This commit is contained in:
commit
b6abfee24f
@ -478,9 +478,10 @@ where
|
||||
SB: Storage<T, U3>,
|
||||
SC: Storage<T, U3>,
|
||||
{
|
||||
// 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::<T, 3, 3>::new(
|
||||
xaxis.x.clone(),
|
||||
|
Loading…
Reference in New Issue
Block a user