aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Geometry
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-03-08 11:38:45 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-03-08 11:38:45 +0000
commit44f218988cab042d2db6eba2e22e6d651d4d5fd2 (patch)
tree206aa9b038eba067606c2419e7edf1acb7882b19 /Eigen/src/Geometry
parent3ac42fed948c3fd6c7b56287086a61f52fd9f036 (diff)
add a small note in Transform doc.
Diffstat (limited to 'Eigen/src/Geometry')
-rw-r--r--Eigen/src/Geometry/Transform.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Eigen/src/Geometry/Transform.h b/Eigen/src/Geometry/Transform.h
index 8b5e9619c..2977a63ee 100644
--- a/Eigen/src/Geometry/Transform.h
+++ b/Eigen/src/Geometry/Transform.h
@@ -139,6 +139,15 @@ template<typename Lhs,typename Rhs> struct ei_transform_transform_product_impl;
* that case the last matrix row can be ignored, and the product returns non
* homogeneous vectors.
*
+ * Since, for instance, a Dim x Dim matrix is interpreted as a linear transformation,
+ * it is not possible to directly transform Dim vectors stored in a Dim x Dim matrix.
+ * The solution is either to use a Dim x Dynamic matrix or explicitely request a
+ * vector transformation by making the vector homogeneous:
+ * \code
+ * m' = T * m.colwise().homogeneous();
+ * \endcode
+ * Note that there is zero overhead.
+ *
* Conversion methods from/to Qt's QMatrix and QTransform are available if the
* preprocessor token EIGEN_QT_SUPPORT is defined.
*