From 7cefa75901117fb562d58129eab8ba705566f197 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Thu, 29 Jul 2010 17:30:37 +0200 Subject: [PATCH] Added static method Identity() to the Translation class. --- Eigen/src/Geometry/Translation.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Eigen/src/Geometry/Translation.h b/Eigen/src/Geometry/Translation.h index 06db9956e..d76a58f41 100644 --- a/Eigen/src/Geometry/Translation.h +++ b/Eigen/src/Geometry/Translation.h @@ -153,6 +153,8 @@ public: return *this; } + static const Translation Identity() { return Translation(VectorType::Zero()); } + /** \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