Skip to content

rotx

geometry · scripts/geometry/rotx.m

: R = rotx (ang)

Return the 3-by-3 matrix of a right-handed rotation by ang degrees about the x 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.