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 αLaTeX\alpha, computes the rotation matrix of angle αLaTeX\alpha.

linear_algebra.rotation_matrix1.calc.png

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

linear_algebra.rotation_matrix2.calc.png