Fixed inverse
This commit is contained in:
parent
0ebfce48d7
commit
9eca318991
@ -89,7 +89,8 @@ SwingTwistOf<T> SwingTwistOf<T>::operator*=(const SwingTwistOf<T>& rotation) {
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
SwingTwistOf<T> Passer::LinearAlgebra::SwingTwistOf<T>::Inverse(
|
SwingTwistOf<T> Passer::LinearAlgebra::SwingTwistOf<T>::Inverse(
|
||||||
SwingTwistOf<T> rotation) {
|
SwingTwistOf<T> rotation) {
|
||||||
SwingTwistOf<T> r = SwingTwistOf<T>(-rotation.swing, -rotation.twist);
|
SwingTwistOf<T> r = SwingTwistOf<T>(
|
||||||
|
-rotation.swing.horizontal, -rotation.swing.vertical, -rotation.twist);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user