Learn R Programming

dagR (version 1.1.1)

addAngle: Sum up two radian angles.

Description

Adds two radian angles together and applies modulus 2*pi. This is internally called by smoothArc, though hardly needed.

Usage

addAngle(a, b)

Arguments

a
Angle 1 in radian.
b
Angle 2 in radian.

Value

  • numeric value [0, 2*pi).

See Also

smoothArc

Examples

Run this code
addAngle(0.5*pi, pi);
addAngle(1.5*pi, pi);

Run the code above in your browser using DataLab