Return the two angles of the universal joint for a given direction
function ujAngles extends StewartPlatform.Icons.Function; import Modelica.Math.atan2; import TM = Modelica.Mechanics.MultiBody.Frames.TransformationMatrices; input Real v[3] "Input vector"; input SI.Angle alpha = 0 "Universal joint orientation"; output SI.Angle angles[2] "Rotation angles around x-axis and then new y-axis"; end ujAngles;