MCPcopy Create free account
hub / github.com/colmap/colmap / EulerAnglesToRotationMatrix

Function EulerAnglesToRotationMatrix

src/colmap/geometry/pose.cc:169–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169Eigen::Matrix3d EulerAnglesToRotationMatrix(const double rx,
170 const double ry,
171 const double rz) {
172 const Eigen::Matrix3d Rx =
173 Eigen::AngleAxisd(rx, Eigen::Vector3d::UnitX()).toRotationMatrix();
174 const Eigen::Matrix3d Ry =
175 Eigen::AngleAxisd(ry, Eigen::Vector3d::UnitY()).toRotationMatrix();
176 const Eigen::Matrix3d Rz =
177 Eigen::AngleAxisd(rz, Eigen::Vector3d::UnitZ()).toRotationMatrix();
178 return Rz * Ry * Rx;
179}
180
181Eigen::Quaterniond AverageQuaternions(
182 const std::vector<Eigen::Quaterniond>& quats,

Callers 3

TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68