rotateV: internal function to rotate a vector of points

Description Usage Arguments Value Author(s) See Also Examples

Description

Rotates a set of points around a center point a given number of radians

Usage

1
rotateV(x2, y2, x0, y0, ang)

Arguments

x2

Vector containing x coordinates being rotated

y2

Vector containing y coordinates being rotated

x0

x coordinate of center of rotation

y0

y coordinate of center of rotation

ang

Angle of rotation given in radians

Value

set of rotated points

Author(s)

JP Bida

See Also

rotateS

Examples

1
2
3
x=c(1,0,-1,0)
y=c(0,1,0,-1)
pts=rotateV(x,y,0,0,pi/4)


Search within the RRNA package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.