rotateS: Internal function to rotate a single point

Description Usage Arguments Value Author(s) Examples

Description

Rotates a point a given angle around a given center point.

Usage

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

Arguments

x2

x coordinate of the position being rotated

y2

y coordinate of the position being rotated

x0

x coordinate of the center of rotation

y0

y coordinate of the center of rotation

ang

rotatation angle in radians

Value

Returns a rotated point

Author(s)

JP Bida

Examples

1
2
### Rotate a point 90 degress ###
rotateS(0,1,0,0,pi/2)

RRNA documentation built on May 2, 2019, 1:06 p.m.