<html> <head> <title>Struct AffineMatrix3D</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../../../../idl.css"> </head> <body> <div id="adc-idlref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="3"> <tr> <td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td> <td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td> <td class="navimain"><a href="AffineMatrix3D-xref.html" class="navimain">Use</a></td> <td class="navimainnone">Devguide</td> <td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td> </tr> </table> <table class="navisub" border="0" cellpadding="0"> <tr> <td class="navisub"><a href="#Elements" class="navisub">Elements' Summary</a></td> <td class="navisub"><a href="#ElementDetails" class="navisub">Elements' Details</a></td> </tr> </table> <hr> <table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;"> <tr> <td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">geometry</a> :: </p> </td> </tr> <tr> <td class="title"><table class="title-table" width="99%"> <tr> <td width="25%" class="title2">unpublished </td> <td width="50%" class="title">struct AffineMatrix3D</td> <td width="*"/></tr> </table> </td> </tr> <tr> <td/></tr> <tr> <td><dl> <dt><b>Usage Restrictions</b></dt> <dd><i>not published</i></dd> <dt><b>Description</b></dt> <dd>This structure defines a 3 by 4 affine matrix.</dd> <dd><p> The matrix defined by this structure constitutes an affine mapping of a point in 3D to another point in 3D. The last line of a complete 4 by 4 matrix is omitted, since it is implicitely assumed to be [0,0,0,1].<p> An affine mapping, as performed by this matrix, can be written out as follows, where <code>xs, ys</code> and <code>zs</code> are the source, and <code>xd, yd</code> and <code>zd</code> the corresponding result coordinates: <code> xd = m00*xs + m01*ys + m02*zs + m03; yd = m10*xs + m11*ys + m12*zs + m13; zd = m20*xs + m21*ys + m22*zs + m23; </code><p> Thus, in common matrix language, with M being the <a href="AffineMatrix3D.html">AffineMatrix3D</a> and vs=[xs,ys,zs]^T, vd=[xd,yd,zd]^T two 3D vectors, the affine transformation is written as vd=M*vs. Concatenation of transformations amounts to multiplication of matrices, i.e. a translation, given by T, followed by a rotation, given by R, is expressed as vd=R*(T*vs) in the above notation. Since matrix multiplication is associative, this can be shortened to vd=(R*T)*vs=M'*vs. Therefore, a set of consecutive transformations can be accumulated into a single AffineMatrix3D, by multiplying the current transformation with the additional transformation from the left.<p> Due to this transformational approach, all geometry data types are points in abstract integer or real coordinate spaces, without any physical dimensions attached to them. This physical measurement units are typically only added when using these data types to render something onto a physical output device. For 3D coordinates there is also a projection from 3D to 2D device coordiantes needed. Only then the total transformation matrix (oncluding projection to 2D) and the device resolution determine the actual measurement unit in 3D.<p> </dd> <dt><b>Since </b></dt> <dd>OpenOffice 2.0</dd> </dl> </td> </tr> </table> <hr> <a name="Elements"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Elements' Summary</td> </tr> <tr> <td class="imsum_left"><a href="#m00">m00</a></td> <td class="imsum_right">The top, left matrix entry. </td> </tr> <tr> <td class="imsum_left"><a href="#m01">m01</a></td> <td class="imsum_right">The top, left middle matrix entry. </td> </tr> <tr> <td class="imsum_left"><a href="#m02">m02</a></td> <td class="imsum_right">The top, right middle matrix entry. </td> </tr> <tr> <td class="imsum_left"><a href="#m03">m03</a></td> <td class="imsum_right">The top, right matrix entry. </td> </tr> <tr> <td class="imsum_left"><a href="#m10">m10</a></td> <td class="imsum_right">The middle, left matrix entry. </td> </tr> <tr> <td class="imsum_left"><a href="#m11">m11</a></td> <td class="imsum_right">The middle, middle left matrix entry. </td> </tr> <tr> <td class="imsum_left"><a href="#m12">m12</a></td> <td class="imsum_right">The middle, middle right matrix entry. </td> </tr> <tr> <td class="imsum_left"><a href="#m13">m13</a></td> <td class="imsum_right">The middle, right matrix entry. </td> </tr> <tr> <td class="imsum_left"><a href="#m20">m20</a></td> <td class="imsum_right">The bottom, left matrix entry. </td> </tr> <tr> <td class="imsum_left"><a href="#m21">m21</a></td> <td class="imsum_right">The bottom, middle left matrix entry. </td> </tr> <tr> <td class="imsum_left"><a href="#m22">m22</a></td> <td class="imsum_right">The bottom, middle right matrix entry. </td> </tr> <tr> <td class="imsum_left"><a href="#m23">m23</a></td> <td class="imsum_right">The bottom, right matrix entry. </td> </tr> </table> <a name="ElementDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle">Elements' Details</td> </tr> <tr> <td class="imdetail"><a name="m00" class="membertitle">m00</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m00</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The top, left matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="m01" class="membertitle">m01</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m01</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The top, left middle matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="m02" class="membertitle">m02</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m02</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The top, right middle matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="m03" class="membertitle">m03</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m03</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The top, right matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="m10" class="membertitle">m10</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m10</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The middle, left matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="m11" class="membertitle">m11</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m11</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The middle, middle left matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="m12" class="membertitle">m12</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m12</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The middle, middle right matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="m13" class="membertitle">m13</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m13</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The middle, right matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="m20" class="membertitle">m20</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m20</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The bottom, left matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="m21" class="membertitle">m21</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m21</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The bottom, middle left matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="m22" class="membertitle">m22</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m22</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The bottom, middle right matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="m23" class="membertitle">m23</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>m23</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>The bottom, right matrix entry.</dd> </dl> </td> </tr> </table> </td> </tr> </table> <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.</p> </div> <!-- id="adc-idlref" --> </body> </html>