MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / RotationToAngleAxis

Function RotationToAngleAxis

deps/glomap/glomap/math/rigid3d.cc:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47Eigen::Vector3d RotationToAngleAxis(const Eigen::Matrix3d& rot) {
48 Eigen::AngleAxis<double> aa(rot);
49 Eigen::Vector3d aa_vec = aa.angle() * aa.axis();
50 return aa_vec;
51}
52
53Eigen::Matrix3d AngleAxisToRotation(const Eigen::Vector3d& aa_vec) {
54 double aa_norm = aa_vec.norm();

Callers 4

SetupLinearSystemMethod · 0.85
UpdateGlobalRotationsMethod · 0.85
ComputeResidualsMethod · 0.85
RotUpToAngleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected