Move apply_rotation_xyz into matrix_3x3

This commit is contained in:
Scott Lahteine
2021-03-30 23:16:29 -05:00
committed by Scott Lahteine
parent 8d083eb248
commit be775ed72d
5 changed files with 10 additions and 12 deletions

View File

@@ -87,8 +87,8 @@ void vector_3::debug(PGM_P const title) {
* matrix_3x3
*/
void apply_rotation_xyz(const matrix_3x3 &matrix, float &_x, float &_y, float &_z) {
vector_3 vec = vector_3(_x, _y, _z); vec.apply_rotation(matrix);
void matrix_3x3::apply_rotation_xyz(float &_x, float &_y, float &_z) {
vector_3 vec = vector_3(_x, _y, _z); vec.apply_rotation(*this);
_x = vec.x; _y = vec.y; _z = vec.z;
}