rescale: Scales a point cloud (3D)

Description Usage Arguments Value Examples

Description

Scales a 3D point cloud on every axis.

Usage

1
rescale(x, y, z, scalex = 1, scaley = 1, scalez = 1)

Arguments

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)

Value

data.frame with the spatial coordinates of the resulting points

Examples

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)

recexcavAAR documentation built on May 1, 2019, 6:48 p.m.