functionwrapAngle

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

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], if positiveRange == false. Otherwise the input angle u is wrapped to the interval [0,2*pi[.

Inputs

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

Outputs

TypeNameDefaultDescription
Modelica.Units.SI.AngleyWrapped output angle