full2half_circ: Convert Angle from Full Circle to Half Circle

View source: R/utils.R

full2half_circR Documentation

Convert Angle from Full Circle to Half Circle

Description

Converts an angle from the full circle (i.e. in the interval [0, 2π)) to an angle on the half circle (i.e. in the interval [-π, π)).

Usage

full2half_circ(angle)

Arguments

angle

numeric value of an angle or a circular-object in [0, 2π).

Value

The numeric value of the angle in [-π, π).

Examples

full2half_circ(0 * pi) / pi
full2half_circ(0.5 * pi) / pi
full2half_circ(1 * pi) / pi
full2half_circ(1.5 * pi) / pi
full2half_circ(2 * pi) / pi



cylcop documentation built on Oct. 30, 2022, 1:05 a.m.