Description Usage Arguments Value Examples
Scales a 3D point cloud on every axis.
1 | rescale(x, y, z, scalex = 1, scaley = 1, scalez = 1)
|
x |
vector of x axis values of scale point cloud |
y |
vector of y axis values of scale point cloud |
z |
vector of z axis values of scale point cloud |
scalex |
scaling factor on x axis (default = 1) |
scaley |
scaling factor on y axis (default = 1) |
scalez |
scaling factor on z axis (default = 1) |
data.frame with the spatial coordinates of the resulting points
1 2 3 4 5 6 7 8 9 | s <- draw_sphere(1,1,1,3)
#library(rgl)
#plot3d(s)
s2 <- rescale(s$x, s$y, s$z, scalex = 4, scalez = 5)
#library(rgl)
#plot3d(s2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.