
Projection of 3-dimensional to 2-dimensional points using a 4x4
viewing transformation matrix. Mainly for adding to
perspective plots such as persp
.
trans3d(x, y, z, pmat)
numeric vectors of equal length, specifying points in 3D space.
a persp()
.
a list with two components
the projected 2d coordinates of the 3d input (x,y,z)
.
# NOT RUN {
<!-- %% it would be nice to have an independent example -->
# }
# NOT RUN {
## See help(persp) {after attaching the 'graphics' package}
## -----------
# }
Run the code above in your browser using DataLab