spin: spin function rotate model at (0,0,0) axis with provided...

Description Usage Arguments Value

View source: R/dummymodel.R

Description

spin function rotate model at (0,0,0) axis with provided direction

Usage

1
spin(points, direction = 0, angle = pi/2)

Arguments

points

the P * 3 matrix that is generated by other base functions

direction

an integer that is either 0, 1, 2 corresponding xy, xz, yz plane we perform rotate

angle

how much we rotate the graph in radiant, default is half pi radiant or 90 degree

Value

newpoints the P * 3 matrix of points after the rotation is performed.


deathince/ModelSectionView documentation built on Dec. 19, 2021, 10:06 p.m.