forked from modelica/ModelicaStandardLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back nullRotation. Needed to merge extends in older MSL.
- Loading branch information
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
ModelicaServices/AnimationInterface/Frames/nullRotation.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
within ModelicaServices.AnimationInterface.Frames; | ||
function nullRotation | ||
"Return orientation object that does not rotate a frame" | ||
extends Icons.Function; | ||
output Orientation R | ||
"Orientation object such that frame 1 and frame 2 are identical"; | ||
algorithm | ||
R := Orientation(T=identity(3),w= zeros(3)); | ||
annotation(Inline=true, Documentation(info="<html> | ||
<h4>Syntax</h4> | ||
<blockquote><pre> | ||
R = Frames.<strong>nullRotation</strong>(); | ||
</pre></blockquote> | ||
<h4>Description</h4> | ||
<p> | ||
The function call <code>Frames.<strong>nullRotation</strong>()</code> returns an orientation matrix R | ||
describing the orientation object to rotate frame 1 into frame 2, if frame 1 and frame 2 are identical. | ||
(= transformation matrix is identity matrix and angular velocity is zero). | ||
</p> | ||
<h4>See also</h4> | ||
<p> | ||
<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.nullRotation\">TransformationMatrices.nullRotation</a>, | ||
<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.Quaternions.nullRotation\">Quaternions.nullRotation</a>. | ||
</p> | ||
</html>")); | ||
end nullRotation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters