powered by
Matrix rotation about the Z-axis
ROTZ(deg)
Angle in degrees
A 4 by 4 matrix for rotation and translation for 3-D transformation
Rogers and Adams, 1990, Mathematical Elements for Computer Graphics, McGraw-Hill, 611p.
ROTX, ROTY
# NOT RUN { v = c(1,4,5) A = ROTZ(23) vp = c(v, 1) # } # NOT RUN { <!-- %*% A --> # } # NOT RUN { # }
Run the code above in your browser using DataLab