Skip to main content

Rotation matrix

Computes the rotation matrix of angle α: cos(α)sin(α)0-sin(α)cos(α)0001.

Syntax

rotation_matrix(Real)
rotation_matrix(Point, Vector, Real)

Description

Given a real α\alpha, computes the rotation matrix of angle α\alpha.

linear_algebra.rotation_matrix1.calc.png

Given a point P, a vector v and a real α\alpha, computes the rotation matrix around the line passing through PP and vector vv with angle α\alpha.

linear_algebra.rotation_matrix2.calc.png