This is equivalent to eulunity2quaternion(rot2eulunity(R))

rot2quaternion(R)

Arguments

R

a 3x3 Rotation matrix

Value

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