Learn R Programming

RFOC (version 3.4-10)

ROTX: X-axis Rotation Matrix

Description

Matrix rotation about the X-axis

Usage

ROTX(deg)

Value

A 4 by 4 matrix for rotation and translation for 3-D transformation

Arguments

deg

Angle in degrees

Author

Jonathan M. Lees <jonathan.lees@unc.edu>

References

Rogers and Adams, 1990, Mathematical Elements for Computer Graphics, McGraw-Hill, 611p.

See Also

ROTY, ROTZ

Examples

Run this code
v = c(1,4,5)
A = ROTX(23)
vp = c(v, 1)  

Run the code above in your browser using DataLab