Update of /cvsroot/plib/plib/doc/sg
In directory usw-pr-cvs1:/tmp/cvs-serv16016/doc/sg
Modified Files:
index.html
Log Message:
Added documentation for sgClassifyMat4.
Index: index.html
===================================================================
RCS file: /cvsroot/plib/plib/doc/sg/index.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- index.html 2001/10/27 05:34:47 1.8
+++ index.html 2002/01/25 16:28:00 1.9
@@ -590,6 +590,39 @@
void sgFullXformPnt4 ( sgVec4 dst, sgVec4 src, sgMat4 mat ) ;
</pre>
+The properties of a matrix can be tested with:
+<pre>
+ int sgClassifyMat4 ( const sgMat4 mat ) ;
+</pre>
+which returns a bitmask with zero or more of the following bits set:
+<p>
+<table>
+ <tr>
+ <td>SG_ROTATION</td>
+ <td>Upper 3x3 includes a rotational component.</td>
+ </tr>
+ <tr>
+ <td>SG_MIRROR</td>
+ <td>Changes handedness.</td>
+ </tr>
+ <tr>
+ <td>SG_SCALE</td>
+ <td>Uniform scaling going on.</td>
+ </tr>
+ <tr>
+ <td>SG_NONORTHO</td>
+ <td>Upper 3x3 not orthogonal (including non-uniform scaling).</td>
+ </tr>
+ <tr>
+ <td>SG_TRANSLATION</td>
+ <td>Translates.</td>
+ </tr>
+ <tr>
+ <td>SG_PROJECTION</td>
+ <td>Forth column not 0,0,0,1.</td>
+ </tr>
+</table>
+
<H3>Coord routines:</H3>
These routines operate on 'sgCoord' structures:
<pre>
|