Added static method Identity() to the Translation class.

This commit is contained in:
Hauke Heibel 2010-07-29 17:30:37 +02:00
parent e92993d7b9
commit 7cefa75901

View File

@ -153,6 +153,8 @@ public:
return *this; return *this;
} }
static const Translation Identity() { return Translation(VectorType::Zero()); }
/** \returns \c *this with scalar type casted to \a NewScalarType /** \returns \c *this with scalar type casted to \a NewScalarType
* *
* Note that if \a NewScalarType is equal to the current scalar type of \c *this * Note that if \a NewScalarType is equal to the current scalar type of \c *this