Genralised atan2 with range
(alpha - pi) < phi < = (alpha + pi)i. e. cut at angle
alpha + pifor arbitrary (time-dependent) input argument alpha.
function atanVarCut extends Modelica.Icons.Function; input Real[2] x "2-dimensional vector"; input SI.Angle alpha "angle"; output SI.Angle phi "arc(x) with range (alpha-pi) < phi <= (alpha+pi)"; end atanVarCut;