|
|
@ -62,9 +62,9 @@ void Matrix3<T>::to_euler(float *roll, float *pitch, float *yaw) const |
|
|
|
template <typename T> |
|
|
|
template <typename T> |
|
|
|
void Matrix3<T>::from_rotation(enum Rotation rotation) |
|
|
|
void Matrix3<T>::from_rotation(enum Rotation rotation) |
|
|
|
{ |
|
|
|
{ |
|
|
|
(*this).a(1,0,0); |
|
|
|
(*this).a = {1,0,0}; |
|
|
|
(*this).b(0,1,0); |
|
|
|
(*this).b = {0,1,0}; |
|
|
|
(*this).c(0,0,1); |
|
|
|
(*this).c = {0,0,1}; |
|
|
|
|
|
|
|
|
|
|
|
(*this).a.rotate(rotation); |
|
|
|
(*this).a.rotate(rotation); |
|
|
|
(*this).b.rotate(rotation); |
|
|
|
(*this).b.rotate(rotation); |
|
|
|