Skip to content

rotz

geometry · scripts/geometry/rotz.m

: R = rotz (ang)

Return the 3-by-3 matrix of a right-handed rotation by ang degrees about the z axis.

Angles that are multiples of 90 degrees give exact 0, 1 and -1 entries. The result is single precision for single input and double otherwise.