Fixed the return value of Rot3

release/4.3a0
nsrinivasan7 2014-11-30 08:32:35 -05:00
parent 85032364f1
commit 0ac6c8b80b
1 changed files with 4 additions and 2 deletions

View File

@ -64,8 +64,10 @@ Rot2& Rot2::normalize() {
} }
/* ************************************************************************* */ /* ************************************************************************* */
Matrix Rot2::matrix() const { Matrix2 Rot2::matrix() const {
return (Matrix(2, 2) << c_, -s_, s_, c_).finished(); Matrix2 rvalue;
rvalue << c_, -s_, s_, c_;
return rvalue;
} }
/* ************************************************************************* */ /* ************************************************************************* */