Learn R Programming

cooltools (version 2.4)

rotation3: 3D rotation matrix

Description

Compute a 3D rotation matrix given an axis and an angle

Usage

rotation3(u, angle = NULL)

Value

Returns a 3-by-3 rotation matrix

Arguments

u

3-vector specifying the rotation axis

angle

rotation angle in radians; if not given, the norm of the vector u is interpreted as the angle

Author

Danail Obreschkow

See Also

rotation2