Wilang Documentation1.0.0+4

rotationMatrix#

Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.

Available in: math cells, REPL.

Syntax#

rotationMatrix(theta)
rotationMatrix(theta, v)
rotationMatrix(theta, v, format)

Arguments and behavior#

For matrices, dimensions must match the operation. Singular matrices or incompatible shapes can fail. Cell indexing starts at 1. The example returns matrix.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
rotationMatrix(pi/2)

Expected result: matrix.

See also#

cos · sin

All functions · Math guides