-
Notifications
You must be signed in to change notification settings - Fork 164
/
to_exy.mo
32 lines (29 loc) · 1.25 KB
/
to_exy.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.TransformationMatrices;
function to_exy
"Map rotation object into e_x and e_y vectors of frame 2, resolved in frame 1"
extends Modelica.Icons.Function;
input TransformationMatrices.Orientation T
"Orientation object to rotate frame 1 into frame 2";
output Real exy[3, 2]
"= [e_x, e_y] where e_x and e_y are axes unit vectors of frame 2, resolved in frame 1";
algorithm
exy := [T[1, :], T[2, :]];
annotation(Inline=true, Documentation(info="<html>
<h4>Syntax</h4>
<blockquote><pre>
exy = TransformationMatrices.<strong>to_exy</strong>(T);
</pre></blockquote>
<h4>Description</h4>
<p>
This function returns unit vectors e_x and e_y which define axes of frame 2 resolved in frame 1,
provided T is a <a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.Orientation\">transformation matrix</a>
to rotate frame 1 into 2.
</p>
<h4>See also</h4>
<p>
<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.from_nxy\">from_nxy</a>,
<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.from_nxz\">from_nxz</a>,
<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.to_exy\">Frames.to_exy</a>.
</p>
</html>"));
end to_exy;