rotation.matrix: Build a 4x4 rotation matrix (Rodrigues formula).

View source: R/renderable_transform.R

rotation.matrixR Documentation

Build a 4x4 rotation matrix (Rodrigues formula).

Description

Build a 4x4 rotation matrix (Rodrigues formula).

Usage

rotation.matrix(angle_rad, x, y, z)

Arguments

angle_rad

numeric scalar, the rotation angle in radians.

x

numeric, x component of the rotation axis.

y

numeric, y component of the rotation axis.

z

numeric, z component of the rotation axis.

Value

4x4 numeric rotation matrix in homogeneous coordinates. Matches the convention of rotate3d / rotationMatrix.


fsbrain documentation built on Aug. 23, 2026, 5:06 p.m.