This information is part of the Modelica Standard Library maintained by the Modelica Association.
planarRotationAngle
Return angle of a planar rotation, given the rotation axis and the representations of a vector in frame 1 and frame 2
|
SOLUTIONS
|
|
|
||
|
|
Return angle of a planar rotation, given the rotation axis and the representations of a vector in frame 1 and frame 2
A call to this function of the form
Real[3] e, v1, v2;
Modelica.SIunits.Angle angle;
equation
angle = planarRotationAngle(e, v1, v2);
computes the rotation angle "angle" of a planar rotation along unit vector e, rotating frame 1 into frame 2, given the coordinate representations of a vector "v" in frame 1 (v1) and in frame 2 (v2). Therefore, the result of this function fulfills the following equation:
v2 = resolve2(planarRotation(e,angle), v1)
The rotation angle is returned in the range
-p <= angle <= p
This function makes the following assumptions on the input arguments
The function does not check the above assumptions. If these assumptions are violated, a wrong result will be returned and/or a division by zero will occur.