MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / VectorToQuaternion

Function VectorToQuaternion

include/VectorTypes.h:127–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126 template <typename T>
127 QuaternionT<T> VectorToQuaternion(const VectorT<T,4> &Vec)
128 {
129 QuaternionT<T> Quat(Vec(3), Vec(0), Vec(1), Vec(2)); /**< storage order is different from constructor! */
130 return Quat;
131 }
132
133 /** 3D angle-axis representation */
134 template <typename T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected