shift: shift function

Description Usage Arguments Value Examples

View source: R/dummymodel.R

Description

shift function

Usage

1
shift(points, shift = c(0, 0, 0), shiftto = NULL)

Arguments

points

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

shift

an len 3 vector indicating how much we want to shift, default is (0,0,0)

shiftto

an len 3 vector indicate where do we want to shift model to. default is NULL

Value

the points that is shifted by shift amount. or one of the closest point shift to shiftto location.

Examples

1
shift(matrix(c(0,0,1),nrow = 1),c(1,1,1)) # return matrix(1,1,2) that every point in matrix shift (1,1,1) direction

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