|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
21 m_R = Transform3D::Identity();
39 bool eqPos =
similar(input.mPos, mPos);
50 mAngle = input.mAngle;
59 if (!
similar(xyz[0], mAngle[0]))
64 if (!
similar(xyz[1], mAngle[1]))
69 if (!
similar(xyz[2], mAngle[2]))
115 Vector3D ea = t.matrix().block<3, 3> (0, 0).eulerAngles(0, 1, 2);
121 mAngleAxis = Eigen::AngleAxisd(xyz[0], Vector3D::UnitX()) * Eigen::AngleAxisd(xyz[1], Vector3D::UnitY())
122 * Eigen::AngleAxisd(xyz[2], Vector3D::UnitZ());
132 Eigen::Matrix3d R = T.matrix().block<3, 3> (0, 0);
134 retval.
mPos = T.matrix().block<3, 1> (0, 3);
170 boost::array<double, 6> retval;
Vector3D getEulerXYZ() const
Defines an axis-angle representation of a position+orientation in 3D space.
Transform3D createTransformRotateZ(const double angle)
Transform3D transform() const
Namespace for all CustusX production code.
Vector3D rotationAxis() const
static Frame3D fromCompactAxisAngleRep(const boost::array< double, 6 > &rep)
static Frame3D create(const Transform3D &transform)
double getThetaZ(Vector3D k)
get thetaZ, z meaning the elevation from the xy plane
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
void setEulerXYZ(const Vector3D &xyz)
Eigen::AngleAxisd mAngleAxis
angle-axis representation of rotation
boost::array< double, 6 > getCompactAxisAngleRep() const
std::ostream & operator<<(std::ostream &s, const IntBoundingBox3D &data)
Transform3D createTransformRotateX(const double angle)
void setRotationAxis(const Vector3D &k)
void put(std::ostream &s) const
Transform3D createTransformTranslate(const Vector3D &translation)
Vector3D unitVector(double thetaXY, double thetaZ)
compute a unit vector given angles xy in the xy plane and z meaning the elevation from the xy plane.
Transform3D createTransformRotateY(const double angle)
bool similar(const CameraInfo &lhs, const CameraInfo &rhs, double tol)
double getThetaXY(Vector3D k)
get thetaXY, meaning the angle of v projected onto the xy plane
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.