cartesian_rotation: Counterclockwise rotation about the origin

Usage Arguments Value Author(s) See Also Examples

View source: R/retina-package.r

Usage

1
cartesian_rotation(x, y, theta)

Arguments

x

vector of x coordinates (int/float)

y

vector of y coordinates (int/float)

theta

(float|int) angle in degrees.

Value

xy Data.Frame with $x and $y rotated coordinates

Author(s)

Brian Cohn brian.cohn@usc.edu, Lars Schmitz

See Also

Other trig_fns: add_degrees

Examples

1
2
3
4
x<- c(1,2,3,4,5)
y<- c(3,3,3,3,3)
theta <- 30
cartesian_rotation(x,y,theta)

yinscapital/retina-analysis-reference documentation built on May 22, 2019, 12:40 p.m.