Converts a 4-dimensional unit quaternion vector c(w, x, y, z) into a rotation matrix

quaternion2rot(q)

Arguments

quat

A numeric vector of length 4 representing the quaternion c(w, x, y, z).

Value

A rotation matrix R