functionwrapAngle

Wrap angle to interval ]-pi,pi] or [0,2*pi[
Diagram of wrapAngle

Extends from Modelica.Math.Icons.AxisCenter (Basic icon for mathematical function with y-axis in the center).

Information

This function wraps the input angle u to the interval ]-pi,pi].

Inputs

TypeNameDefaultDescription
Modelica.Units.SI.AngleuInput angle
BooleanpositiveRangefalseUse only positive output range, if true

Outputs

TypeNameDefaultDescription
Modelica.Units.SI.AngleyWrapped output angle