mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-08 09:49:03 +08:00
add a small note in Transform doc.
This commit is contained in:
parent
3ac42fed94
commit
44f218988c
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user