mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
Warning fixes.
This commit is contained in:
parent
2ac471cca8
commit
3eec496047
1 changed files with 6 additions and 5 deletions
|
@ -980,18 +980,19 @@ void lcCamera::Center(const lcVector3& NewCenter, lcStep Step, bool AddKey)
|
|||
const lcMatrix44 Inverse = lcMatrix44AffineInverse(mWorldView);
|
||||
const lcVector3 Direction = -lcVector3(Inverse[2]);
|
||||
|
||||
float Yaw, Pitch, Roll;
|
||||
// float Yaw, Pitch, Roll;
|
||||
float Roll;
|
||||
|
||||
if (fabsf(Direction.z) < 0.9999f)
|
||||
{
|
||||
Yaw = atan2f(Direction.y, Direction.x);
|
||||
Pitch = asinf(Direction.z);
|
||||
// Yaw = atan2f(Direction.y, Direction.x);
|
||||
// Pitch = asinf(Direction.z);
|
||||
Roll = atan2f(Inverse[0][2], Inverse[1][2]);
|
||||
}
|
||||
else
|
||||
{
|
||||
Yaw = 0.0f;
|
||||
Pitch = asinf(Direction.z);
|
||||
// Yaw = 0.0f;
|
||||
// Pitch = asinf(Direction.z);
|
||||
Roll = atan2f(Inverse[0][1], Inverse[1][1]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue