Learn R Programming

RFOC (version 1.0-4)

ROTY: Y-axis Rotation Matrix

Description

Matrix rotation about the Y-axis

Usage

ROTY(deg)

Arguments

deg
Angle in degrees

Value

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

References

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

See Also

ROTX, ROTZ

Examples

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

Run the code above in your browser using DataLab