From cb3716ffb584fe0f593b6f1669a8efdba1305104 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 29 Mar 2016 02:16:55 +1000 Subject: Added my version of libg3d and friends. --- .../libg3d-0.0.8/doc/api/html/libg3d-matrix.html | 450 +++++++++++++++++++++ 1 file changed, 450 insertions(+) create mode 100644 src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html (limited to 'src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html') diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html new file mode 100644 index 0000000..2ffe686 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html @@ -0,0 +1,450 @@ + + +
+ +![]() |
+![]() |
+![]() |
+libg3d Reference Manual | +![]() |
+
---|---|---|---|---|
+ +#include <g3d/matrix.h> + +typedef G3DMatrix; +gboolean g3d_matrix_identity (G3DMatrix *matrix); +gboolean g3d_matrix_multiply (G3DMatrix *m1, + G3DMatrix *m2, + G3DMatrix *rm); +gboolean g3d_matrix_translate (G3DFloat x, + G3DFloat y, + G3DFloat z, + G3DMatrix *rm); +gboolean g3d_matrix_rotate (G3DFloat angle, + G3DFloat ax, + G3DFloat ay, + G3DFloat az, + G3DMatrix *rm); +gboolean g3d_matrix_rotate_xyz (G3DFloat rx, + G3DFloat ry, + G3DFloat rz, + G3DMatrix *rm); +gboolean g3d_matrix_scale (G3DFloat x, + G3DFloat y, + G3DFloat z, + G3DMatrix *rm); +gboolean g3d_matrix_transpose (G3DMatrix *matrix); +G3DFloat g3d_matrix_determinant (G3DMatrix *matrix); +gboolean g3d_matrix_dump (G3DMatrix *matrix); ++
+Matrices in libg3d have the following layout: +
++G3DMatrix matrix[16]: +
++matrix[col * 4 + row] = f;
++ +
+gboolean g3d_matrix_identity (G3DMatrix *matrix);+
+Sets the given matrix to the identity matrix.
++ +
+
|
+4x4 matrix (float[16]) + | +
Returns : |
+TRUE on success, FALSE else + | +
gboolean g3d_matrix_multiply (G3DMatrix *m1, + G3DMatrix *m2, + G3DMatrix *rm);+
+Multiplies the matrixes.
++ +
+
|
+first matrix + | +
|
+second matrix + | +
|
+resulting matrix + | +
Returns : |
+TRUE on success, FALSE else + | +
gboolean g3d_matrix_translate (G3DFloat x, + G3DFloat y, + G3DFloat z, + G3DMatrix *rm);+
+Adds a translation to the the matrix.
++ +
+
|
+x translation + | +
|
+y translation + | +
|
+z translation + | +
|
+resulting matrix + | +
Returns : |
+TRUE on success, FALSE else + | +
gboolean g3d_matrix_rotate (G3DFloat angle, + G3DFloat ax, + G3DFloat ay, + G3DFloat az, + G3DMatrix *rm);+
+Adds a rotation to the matrix.
++ +
+
|
+rotation angle + | +
|
+x component of rotation axis + | +
|
+y component of rotation axis + | +
|
+z component of rotation axis + | +
|
+resulting matrix + | +
Returns : |
+TRUE on success, FALSE else + | +
gboolean g3d_matrix_rotate_xyz (G3DFloat rx, + G3DFloat ry, + G3DFloat rz, + G3DMatrix *rm);+
+Adds a rotation around the 3 coordinate system axes to the matrix.
++ +
+
|
+rotation around x axis + | +
|
+rotation around y axis + | +
|
+rotation around z axis + | +
|
+resulting matrix + | +
Returns : |
+TRUE on success, FALSE else + | +
gboolean g3d_matrix_scale (G3DFloat x, + G3DFloat y, + G3DFloat z, + G3DMatrix *rm);+
+Adds a scaling to the matrix.
++ +
+
|
+x factor + | +
|
+y factor + | +
|
+z factor + | +
|
+resulting matrix + | +
Returns : |
+TRUE on success, FALSE else + | +
gboolean g3d_matrix_transpose (G3DMatrix *matrix);+
+Transposes the matrix.
++ +
+
|
+the matrix + | +
Returns : |
+TRUE on success, FALSE else + | +
G3DFloat g3d_matrix_determinant (G3DMatrix *matrix);+
+Calculate the determinant of the matrix (FIXME: not verified).
++ +
+
|
+the matrix + | +
Returns : |
+the determinant. + | +