FUNCTION REFERENCE

rotvec2mat3d

Rotation matrix of an axis-angle rotation vector (premultiply convention).

Rotation matrix of an axis-angle rotation vector (premultiply convention).

Syntax

R = rotvec2mat3d(rotationVector)

R is the Rodrigues matrix for column points R * p: R = cos(a) I + (1 - cos(a)) k k' + sin(a) [k]x for the unit axis k and angle a = norm(rotationVector).

Example

rotvec2mat3d(pi/2 * [0 0 1])   % [0 -1 0; 1 0 0; 0 0 1]

Differences from MATLAB: one 3-element vector per call (no N-by-3 input).

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.