q_rotation_inv#

static GeometryOperators.q_rotation_inv(v, q)[source]#

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:
vList

List of [v1, v2, v3] coordinates for the vector.

qList

List of [q1, q2, q3, q4] coordinates for the quaternion.

Returns:
List

List of [w1, w2, w3] coordinates for the vector.