q_rotation_inv#
- static GeometryOperators.q_rotation_inv(v, q)#
Evaluate the inverse rotation of a vector that is defined by a quaternion.
It can also be the rotation of the coordinate frame with respect to the vector.
q = q0 + q’ = q0 + iq1 + jq2 + kq3 q* = q0 - q’ = q0 - iq1 - jq2 - kq3 w = q*vq
- Parameters:
- v
List
List of
[v1, v2, v3]
coordinates for the vector.- q
List
List of
[q1, q2, q3, q4]
coordinates for the quaternion.
- v
- Returns:
List
List of
[w1, w2, w3]
coordinates for the vector.