half2full_circ: Convert Angle from Half Circle to Full Circle

View source: R/utils.R

half2full_circR Documentation

Convert Angle from Half Circle to Full Circle

Description

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

Usage

half2full_circ(angle)

Arguments

angle

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

Value

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

Examples

half2full_circ(-1 * pi) / pi
half2full_circ(-0.5 * pi) / pi
half2full_circ(-0 * pi) / pi
half2full_circ(0.5 * pi) / pi


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