fix #11: now the default Transform ctor set the last row in Affine mode.

This commit is contained in:
Gael Guennebaud 2009-06-10 09:35:04 +02:00
parent d97d307fcf
commit f3fd7fd22b

View File

@ -201,8 +201,13 @@ protected:
public:
/** Default constructor without initialization of the coefficients. */
inline Transform() { }
/** Default constructor without initialization of the meaningfull coefficients.
* If Mode==Affine, then the last row is set to [0 ... 0 1] */
inline Transform()
{
if (Mode==Affine)
makeAffine();
}
inline Transform(const Transform& other)
{