OEGeom3DMakeQuaternionΒΆ

template<class T, class U, class V>
void OEGeom3DMakeQuaternion(T *quat, const U *vec, const V angle)

Construct a 4-element quaternion pointed to by quat from the 3-element vector vec and the angle angle. This quaternion represents a 3D rotation around the axis of vec by the angle angle.

Warning

Translation is not taken into account by this function.