Safeguarded some Transform functions with compile time asserts.

Added missing static Identity() to Rotation2D, AngleAxis.
This commit is contained in:
Hauke Heibel
2010-07-29 16:17:42 +02:00
parent 6b89ee0095
commit e92993d7b9
4 changed files with 17 additions and 6 deletions

View File

@@ -142,6 +142,8 @@ public:
m_angle = Scalar(other.angle());
}
inline static const AngleAxis Identity() { return AngleAxis(0, Vector3::UnitX()); }
/** \returns \c true if \c *this is approximately equal to \a other, within the precision
* determined by \a prec.
*