.Modelica.Math.wrapAngle

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[.

Interface

function wrapAngle
  extends Modelica.Math.Icons.AxisCenter;
  import Modelica.Constants.pi;
  input SI.Angle u "Input angle";
  input Boolean positiveRange = false "Use only positive output range, if true";
  output SI.Angle y "Wrapped output angle";
end wrapAngle;

Generated at 2020-06-05T07:38:22Z by OpenModelica 1.16.0~dev-420-gc007a39