Lines Matching full:matrix
20 typedef Matrix<Scalar,3,1> Vector3; in non_projective_only()
39 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in non_projective_only()
58 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); in non_projective_only()
61 VERIFY_IS_APPROX(t1.matrix(), t0.matrix()); in non_projective_only()
82 typedef Matrix<Scalar,3,3> Matrix3; in transformations()
83 typedef Matrix<Scalar,4,4> Matrix4; in transformations()
84 typedef Matrix<Scalar,2,1> Vector2; in transformations()
85 typedef Matrix<Scalar,3,1> Vector3; in transformations()
86 typedef Matrix<Scalar,4,1> Vector4; in transformations()
122 // rotation matrix conversion in transformations()
167 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in transformations()
168 t0.matrix().setZero(); in transformations()
170 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in transformations()
182 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); in transformations()
185 VERIFY_IS_APPROX(t1.matrix(), t0.matrix()); in transformations()
189 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
192 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
194 VERIFY_IS_APPROX(t0.scale(a).matrix(), t1.scale(Vector3::Constant(a)).matrix()); in transformations()
195 VERIFY_IS_APPROX(t0.prescale(a).matrix(), t1.prescale(Vector3::Constant(a)).matrix()); in transformations()
204 tmat4.matrix()(3,3) = Scalar(1); in transformations()
205 VERIFY_IS_APPROX(tmat3.matrix(), tmat4.matrix()); in transformations()
213 VERIFY_IS_APPROX(t3.matrix(), t4.matrix()); in transformations()
215 VERIFY_IS_APPROX(t4.matrix(), MatrixType::Identity()); in transformations()
217 VERIFY_IS_APPROX(t3.matrix(), t4.matrix()); in transformations()
223 VERIFY_IS_APPROX(t5.matrix(), t4.matrix()); in transformations()
225 VERIFY_IS_APPROX(t4.matrix(), MatrixType::Identity()); in transformations()
227 VERIFY_IS_APPROX(t5.matrix(), t4.matrix()); in transformations()
232 VERIFY_IS_APPROX(t6.matrix(), t4.matrix()); in transformations()
234 VERIFY_IS_APPROX(t4.matrix(), MatrixType::Identity()); in transformations()
236 VERIFY_IS_APPROX(t6.matrix(), t4.matrix()); in transformations()
238 // matrix * transform in transformations()
239 VERIFY_IS_APPROX((t3.matrix()*t4).matrix(), (t3*t4).matrix()); in transformations()
242 VERIFY_IS_APPROX(((t3*t4)*t5).matrix(), (t3*(t4*t5)).matrix()); in transformations()
257 VERIFY_IS_APPROX(t20.fromPositionOrientationScale(v20,a,v21).matrix(), in transformations()
258 t21.pretranslate(v20).scale(v21).matrix()); in transformations()
263 …* (t21.prescale(v21.cwiseInverse()).translate(-v20))).matrix().isIdentity(test_precision<Scalar>()… in transformations()
271 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
273 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
275 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
278 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
284 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
287 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
292 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
295 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
300 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
303 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
309 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
312 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
318 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
322 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
326 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
330 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
335 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
340 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
345 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
350 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
355 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
360 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
370 t044.block(0,0,t0.matrix().rows(),4) = t0.matrix(); in transformations()
371 VERIFY_IS_APPROX(t0.inverse(Affine).matrix(), t044.inverse().block(0,0,t0.matrix().rows(),4)); in transformations()
376 t044.block(0,0,t0.matrix().rows(),4) = t0.matrix(); in transformations()
377 VERIFY_IS_APPROX(t0.inverse(Isometry).matrix(), t044.inverse().block(0,0,t0.matrix().rows(),4)); in transformations()
456 p1->matrix().setRandom(); in transform_alignment()
460 VERIFY_IS_APPROX(p1->matrix(), p2->matrix()); in transform_alignment()
461 VERIFY_IS_APPROX(p1->matrix(), p3->matrix()); in transform_alignment()
473 typedef Matrix<Scalar,Dim+1,Dim+1> Mat; in transform_products()
478 Proj p; p.matrix().setRandom(); in transform_products()
482 Mat p_m(p.matrix()), a_m(a.matrix()); in transform_products()
484 VERIFY_IS_APPROX((p*p).matrix(), p_m*p_m); in transform_products()
485 VERIFY_IS_APPROX((a*a).matrix(), a_m*a_m); in transform_products()
486 VERIFY_IS_APPROX((p*a).matrix(), p_m*a_m); in transform_products()
487 VERIFY_IS_APPROX((a*p).matrix(), a_m*p_m); in transform_products()
488 VERIFY_IS_APPROX((ac*a).matrix(), a_m*a_m); in transform_products()
489 VERIFY_IS_APPROX((a*ac).matrix(), a_m*a_m); in transform_products()
490 VERIFY_IS_APPROX((p*ac).matrix(), p_m*a_m); in transform_products()
491 VERIFY_IS_APPROX((ac*p).matrix(), a_m*p_m); in transform_products()