alphahull (version 2.2)

anglesArc: Angles of the extremes of an arc

Description

Given a vector \(v\) and an angle \(\theta\), anglesArc returns the angles that \(A_\theta v\) and \(A_{-\theta} v\) form with the axis OX, where \(A_\theta v\) represents the clockwise rotation of angle \(\theta\) of the vector \(v\).

Usage

anglesArc(v, theta)

Arguments

v

Vector \(v\) in the plane.

theta

Angle \(\theta\) (in radians).

Value

angs

Numeric vector with two components.

Details

The angle that forms the vector \(v\) with the axis OX takes its value in \([0,2\pi)\).

Examples

Run this code
# NOT RUN {
# Let v=c(0,1) and theta=pi/4
# Consider the arc such that v is the internal angle bisector that 
# divides the angle 2*theta into two equal angles
# The angles that the arc forms with the OX axis are pi/4 and 3*pi/4
v <- c(0,1)
theta <- pi/4
anglesArc(v,theta)
# }

Run the code above in your browser using DataLab