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

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