Re: [eigen] alignment question |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
On 27.01.2015 11:04, Sylvain Pointeau wrote:
Vector4f toPoint(const Vector4f &v) {
return Vector4f( v.x(), v.y(), v.z(), 1 );
}
Just a side note: For that specific operation, there exists the
..homogeneous() method, i.e., you can simply write v.homogeneous()
instead of toPoint(v).
http://eigen.tuxfamily.org/dox-devel/classEigen_1_1MatrixBase.html#a0e8cce578a0df194cd4473d1278937b7
Christoph
--
----------------------------------------------
Dipl.-Inf., Dipl.-Math. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen
Tel: +49 (421) 218-64252
----------------------------------------------