25 CX_LOG_WARNING() <<
"cx::roundAwayFromZero() is deprecated, and will be removed. Use std::round() or std::lround() instead.";
35 Eigen::ArrayXd qArray = Eigen::ArrayXd::Zero(7);
36 Eigen::Quaterniond qA;
38 qArray.segment<3>(4) = Tx.matrix().block<3, 1>(0,3);
39 qA = Eigen::Quaterniond(Tx.matrix().block<3, 3>(0,0));
40 qArray.segment<4>(0) = qA.coeffs();
49 Eigen::Quaterniond qA;
51 qA.coeffs() = qArray.segment<4>(0);
52 Tx.matrix().block<3, 3>(0,0) = qA.toRotationMatrix();
53 Tx.matrix().block<3, 1>(0,3) = qArray.segment<3>(4);
Transform3D quaternionToMatrix(Eigen::ArrayXd qArray)
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Eigen::ArrayXd matrixToQuaternion(Transform3D Tx)
double roundAwayFromZero(double val)
Namespace for all CustusX production code.