Learn R Programming

sequence (version 2.0)

rotation: Plane rotation

Description

Rotation of the object form around a center center, of angle angle. Angle in radians in the direct (trigonometric) direction.

Usage

rotation(form, center, angle)

Arguments

form

matrix: two columns, x and y, giving the coordinates of the points composing the object.

center

vector: coordinates of the rotation center.

angle

numeric: rotation angle in radians

Value

matrix: form object rotated.

Details

A geometric function used by smartArrow

See Also

smartArrow

Examples

Run this code
# NOT RUN {
rotation(cbind(c(0,1),c(0,0)),c(0,0),pi/3)
# }

Run the code above in your browser using DataLab