rotate3: Rotate pts in 3D

Description Usage Arguments Value

View source: R/rotate3.R

Description

Rotate pts in 3D

Usage

1
2
3
4
5
6
7
8
rotate3(
  tbl,
  degx_ = NULL, degy_ = NULL, degz_ = NULL,
  x_ = x, y_ = y, z_ = z,
  xc_ = mean(x), yc_ = mean(y), zc_ = mean(z),
  use_bounding_box = TRUE,
  keep_bounding = TRUE
)

Arguments

tbl

[tibble], a tibble containing points to be rotated

degx_

[numeric], length 1, degrees anticlockwise about x axis to rotate shape

degy_

[numeric], length 1, degrees anticlockwise about y axis to rotate shape

degz_

[numeric], length 1, degrees anticlockwise about z axis to rotate shape

x_

[expr], variable name in tbl of x variable

y_

[expr], variable name in tbl of y variable

z_

[expr], variable name in tbl of z variable

xc_

[expr], expression describing xc_ in terms of variables in tbl

yc_

[expr], expression describing yc_ in terms of variables in tbl

zc_

[expr], expression describing zc_ in terms of variables in tbl

use_bounding_box

[logical], length 1, default TRUE,
if FALSE rotate3 does not use bounding box points to make computations
default behavior is to use bounding box points to make computations

keep_bounding

[logical], length 1, default TRUE,
if FALSE does not rbind the bounding box back after computation
default behavior is to use bounding box points to make computations

Value


thmshrt/ggshapes documentation built on Dec. 31, 2020, 8:37 a.m.