Rotates the coordinates by a theta angle (in radians) in the trigonometric direction (anti-clockwise) and using center as coordinates.

coo_rotatecenter(
  x,
  theta = 0,
  center = c(0, 0),
  from_col = coo,
  to_col = coo,
  ...
)

Arguments

x

coo_single, coo_list or mom_tbl

theta

numeric angle to rotate (in radians) and in the trigonometric direction (anti-clockwise). Default to 0.

center

numeric of length 2, sepcifying the (x; y) coordinates of the rotation center. Default to c(0, 0)

from_col

colnames from where to get the coo_list and how to name the resulting one (only for mom_tbl method)

to_col

colnames from where to get the coo_list and how to name the resulting one (only for mom_tbl method)

...

useless here

Value

a coo_single, coo_list or mom_tbl

See also

Examples

x <- bot %>% pick(5) %>% coo_center() %>% coo_scale()