<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Java·Applied·Geodesy·3D - CoordTrans - coordinate system handedness</title>
<link>https://software.applied-geodesy.org/forum/</link>
<description>Support forum for JAG3D software package</description>
<language>en</language>
<item>
<title>CoordTrans - coordinate system handedness (reply)</title>
<content:encoded><![CDATA[<p>Dear Antonio,</p>
<blockquote><p>The 3D coordinate system (<em>X</em>, <em>Y</em>, <em>Z</em>) is a <strong>right-handed</strong> coordinate system and the corresponding rotation transformation parameters (<em>Rx</em>, <em>Ry</em>, and <em>Rz</em>) are according to the <strong>right-hand-rule</strong>, i.e., positive in the counterclockwise direction. Is this correct?</p>
</blockquote><p>CoordTrans transforms points from one system to another one, if both systems are left-handed or right-handed systems. The rotation sequence is parameterized by an axis of rotation and a rotation angle expressed by a quaternion. The basic transformation equations are published in:</p>
<p>Lösler, M., Eschelbach, C.: <em>Zur Bestimmung der Parameter einer räumlichen Affintransformation.</em> avn - Zeitschrift für alle Bereiche der Geodäsie und Geoinformation, 121(7), S. 273-277, 2014.</p>
<p>The PDF is <a href="https://www.researchgate.net/publication/295966894_Zur_Bestimmung_der_Parameter_einer_raumlichen_Affintransformation">freely available</a>. </p>
<p>A quaternion can be expressed as a rotation matrix. Having such a matrix, it is possible to determine Euler-angles. However, 12 rotation sequences exist, for instance, X-Y-Z, X-Y-X, etc. For that reason, the angles are useless without knowing the underlying sequence. CoordTrans obtains the angles from the quaternion using the following <a href="https://sourceforge.net/p/javagraticule3d/code/HEAD/tree/CoordTrans/src/com/derletztekick/geodesy/coordtrans/v2/transformation/Transformation3D.java#l964">equations</a>:</p>
<p><span class="tex2jax_process">$r_x = \arctan2(r_{23}, r_{33}),$</span><br />
<span class="tex2jax_process">$r_y = \arcsin(-r_{13}),$</span><br />
<span class="tex2jax_process">$r_z = \arctan2(r_{12}, r_{11}).$</span></p>
<p>Here, <span class="tex2jax_process">$r_{ij}$</span> is an element of the rotation sequence defined by the quaternion, i.e.,</p>
<p><span class="tex2jax_process">$r_{11} = 2 q0^2-1+2q1^2,$</span> <br />
<span class="tex2jax_process">$r_{12} = 2(q1q2-q0q3),$</span><br />
<span class="tex2jax_process">$r_{13} = 2(q1q3+q0q2),$</span><br />
<span class="tex2jax_process">$r_{23} = 2(q2q3-q0q1),$</span><br />
<span class="tex2jax_process">$r_{33} = 2q0^2-1+2q3^2.$</span></p>
<p><br />
Kind regards<br />
Micha</p>
]]></content:encoded>
<link>https://software.applied-geodesy.org/forum/index.php?id=10902</link>
<guid>https://software.applied-geodesy.org/forum/index.php?id=10902</guid>
<pubDate>Wed, 23 Nov 2022 12:22:32 +0000</pubDate>
<dc:creator>Micha</dc:creator>
</item>
<item>
<title>CoordTrans - coordinate system handedness</title>
<content:encoded><![CDATA[<p>Dear Micha,</p>
<p>I am posting this question mainly as a personal confirmation. It is related to the coordinate transformation module <strong>CoordTrans</strong>.</p>
<p>The 3D coordinate system (<em>X</em>, <em>Y</em>, <em>Z</em>) is a <strong>right-handed</strong> coordinate system and the corresponding rotation transformation parameters (<em>Rx</em>, <em>Ry</em>, and <em>Rz</em>) are according to the <strong>right-hand-rule</strong>, i.e., positive in the counterclockwise direction. Is this correct?</p>
<p>Kindly,<br />
Antonio</p>
]]></content:encoded>
<link>https://software.applied-geodesy.org/forum/index.php?id=10864</link>
<guid>https://software.applied-geodesy.org/forum/index.php?id=10864</guid>
<pubDate>Tue, 22 Nov 2022 07:50:00 +0000</pubDate>
<dc:creator>a2pac</dc:creator>
</item>
</channel>
</rss>
