Code: Select all
Ogre::Degree rotation;
rotation += 15;However, it is very annoying to type "rotation + Degree(15)" everywhere you want to add a number to the amount of degrees. So annoying that it is actually easier to make my rotation variable an Ogre::Real and specify that it's a degree only in the actual rotation.
I would however find it a lot more logical that if you add a number to either a Degree or a Radian, that it automatically assumes that the number is of the same type as the angle.
In short, there should be an operator + for both Degree and Radian so that:
- Degree + Real is the same as Degree + Degree(Real)
- Radian + Real is the same as Radian + Radian(Real)
Or am I fundamentally wrong somewhere? It happened before so I wouldn't be suprised. Or is this already implemented in the SVN version of Ogre?
Please enlighten me
Migileke

