conversion: added -45 deg pitch rotation

This commit is contained in:
Andreas Antener
2018-01-05 11:57:58 +01:00
committed by Lorenz Meier
parent add20389f6
commit ab9ee3aa6c
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -272,5 +272,12 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
x = tmp;
return;
}
case ROTATION_PITCH_315: {
tmp = HALF_SQRT_2 * x - HALF_SQRT_2 * z;
z = HALF_SQRT_2 * z + HALF_SQRT_2 * x;
x = tmp;
return;
}
}
}