Lines Matching refs:matrix
21 typedef Matrix<Scalar,2,2> Matrix2;
22 typedef Matrix<Scalar,3,3> Matrix3;
23 typedef Matrix<Scalar,4,4> Matrix4;
24 typedef Matrix<Scalar,2,1> Vector2;
25 typedef Matrix<Scalar,3,1> Vector3;
26 typedef Matrix<Scalar,4,1> Vector4;
90 // rotation matrix conversion
141 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity());
142 t0.matrix().setZero();
144 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity());
167 VERIFY((t0.matrix() * t1.matrix()).isIdentity(test_precision<Scalar>()));
170 VERIFY_IS_APPROX(t1.matrix(), t0.matrix());
175 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
178 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
180 VERIFY_IS_APPROX(t0.scale(a).matrix(), t1.scale(Vector3::Constant(a)).matrix());
181 VERIFY_IS_APPROX(t0.prescale(a).matrix(), t1.prescale(Vector3::Constant(a)).matrix());
189 tmat4.matrix()(3,3) = Scalar(1);
190 VERIFY_IS_APPROX(tmat3.matrix(), tmat4.matrix());
198 VERIFY_IS_APPROX(t3.matrix(), t4.matrix());
200 VERIFY_IS_APPROX(t4.matrix(), Matrix4::Identity());
202 VERIFY_IS_APPROX(t3.matrix(), t4.matrix());
208 VERIFY_IS_APPROX(t5.matrix(), t4.matrix());
210 VERIFY_IS_APPROX(t4.matrix(), Matrix4::Identity());
212 VERIFY_IS_APPROX(t5.matrix(), t4.matrix());
217 VERIFY_IS_APPROX(t6.matrix(), t4.matrix());
219 VERIFY_IS_APPROX(t4.matrix(), Matrix4::Identity());
221 VERIFY_IS_APPROX(t6.matrix(), t4.matrix());
223 // matrix * transform
224 VERIFY_IS_APPROX(Transform3(t3.matrix()*t4).matrix(), Transform3(t3*t4).matrix());
227 VERIFY_IS_APPROX(((t3*t4)*t5).matrix(), (t3*(t4*t5)).matrix());
242 VERIFY_IS_APPROX(t20.fromPositionOrientationScale(v20,a,v21).matrix(),
243 t21.pretranslate(v20).scale(v21).matrix());
248 * (t21.prescale(v21.cwise().inverse()).translate(-v20))).matrix().isIdentity(test_precision<Scalar>()) );
256 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
259 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
265 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
268 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
274 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
278 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
282 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
286 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
291 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
296 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
301 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
306 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
311 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
316 VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
332 VERIFY_IS_APPROX(t0.inverse(Affine), t0.matrix().inverse());
335 VERIFY_IS_APPROX(t0.inverse(Isometry), t0.matrix().inverse());