rotation {alphahull}R Documentation

Clockwise rotation

Description

This function calculates the clockwise rotation of angle θ\theta of a given vector vv in the plane.

Usage

rotation(v, theta)

Arguments

v

Vector vv in the plane.

theta

Angle θ\theta (in radians).

Value

v.rot

Vector after rotation.

Examples

## Not run: 
# Rotation of angle pi/4 of the vector (0,1)
rotation(v = c(0, 1), theta = pi/4)

## End(Not run)

[Package alphahull version 2.5 Index]