-
Notifications
You must be signed in to change notification settings - Fork 164
/
to_T.mo
32 lines (30 loc) · 1.29 KB
/
to_T.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
within Modelica.Mechanics.MultiBody.Frames;
function to_T "Return transformation matrix T from orientation object R"
extends Modelica.Icons.Function;
input Orientation R "Orientation object to rotate frame 1 into frame 2";
output Real T[3, 3]
"Transformation matrix to transform vector from frame 1 to frame 2 (v2=T*v1)";
algorithm
T := R.T;
annotation(Inline=true, Documentation(info="<html>
<h4>Syntax</h4>
<blockquote><pre>
T = Frames.<strong>to_T</strong>(R);
</pre></blockquote>
<h4>Description</h4>
<p>
This function returns a real matrix T
<!--<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.Orientation\">transformation matrix</a> T-->
computed from an
<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.Orientation\">orientation object</a> R.
The matrix T is considered to be an object transformation matrix.
</p>
<h4>See also</h4>
<p>
<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.from_T\">from_T</a>,
<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.to_T_inv\">to_T_inv</a>,
<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.to_T\">TransformationMatrices.to_T</a>,
<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.Quaternions.to_T\">Quaternions.to_T</a>.
</p>
</html>"));
end to_T;