Lines Matching defs:Vector3
25 typedef Matrix<Scalar,3,1> Vector3;
40 Vector3 v0 = Vector3::Random(),
41 v1 = Vector3::Random(),
42 v2 = Vector3::Random();
101 matrot1 = AngleAxisx(Scalar(0.1), Vector3::UnitX())
102 * AngleAxisx(Scalar(0.2), Vector3::UnitY())
103 * AngleAxisx(Scalar(0.3), Vector3::UnitZ());
105 AngleAxisx(Scalar(0.1), Vector3(1,0,0)).toRotationMatrix()
106 * (AngleAxisx(Scalar(0.2), Vector3(0,1,0)).toRotationMatrix()
107 * (AngleAxisx(Scalar(0.3), Vector3(0,0,1)).toRotationMatrix() * v1)));
150 v0 << 50, 2, 1;//= ei_random_matrix<Vector3>().cwiseProduct(Vector3(10,2,0.5));
154 VERIFY_IS_APPROX( (t0 * Vector3(1,0,0)).norm(), v0.x());
155 //VERIFY(!ei_isApprox((t1 * Vector3(1,0,0)).norm(), v0.x()));
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());
187 mat4 << mat3 , Vector3::Zero() , Vector4::Zero().transpose();
193 Vector3 v3 = Vector3::Random().normalized();
204 v3 = Vector3::Random();
389 // m.col(1) = Vector3(0,ei_random<Scalar>(),ei_random<Scalar>()).normalized();
390 // m.col(0) = Vector3(-1,0,0).normalized();
393 Vector3 ea = m.eulerAngles(I,J,K); \
394 Matrix3 m1 = Matrix3(AngleAxisx(ea[0], Vector3::Unit##X()) * AngleAxisx(ea[1], Vector3::Unit##Y()) * AngleAxisx(ea[2], Vector3::Unit##Z())); \
395 VERIFY_IS_APPROX(m, Matrix3(AngleAxisx(ea[0], Vector3::Unit##X()) * AngleAxisx(ea[1], Vector3::Unit##Y()) * AngleAxisx(ea[2], Vector3::Unit##Z()))); \
414 Vector3 vec3 = Vector3::Random();