From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/matrix_8cpp.html | 773 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 773 insertions(+) create mode 100644 docs/doxygen/nel/matrix_8cpp.html (limited to 'docs/doxygen/nel/matrix_8cpp.html') diff --git a/docs/doxygen/nel/matrix_8cpp.html b/docs/doxygen/nel/matrix_8cpp.html new file mode 100644 index 00000000..8dbd3b10 --- /dev/null +++ b/docs/doxygen/nel/matrix_8cpp.html @@ -0,0 +1,773 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

matrix.cpp File Reference

<description>. +More... +

+#include "stdmisc.h"
+#include "nel/misc/matrix.h"
+#include "nel/misc/plane.h"
+#include "nel/misc/debug.h"
+ +

+Go to the source code of this file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Namespaces

namespace  NLMISC

Defines

#define MAT_TRANS   1
#define MAT_ROT   2
#define MAT_SCALEUNI   4
#define MAT_SCALEANY   8
#define MAT_PROJ   16
#define MAT_VALIDROT   64
#define MAT_VALIDPROJ   128
#define MAT_VALIDALL   (MAT_VALIDROT | MAT_VALIDPROJ)
#define MAT_IDENTITY   0
#define a11   M[0]
#define a21   M[1]
#define a31   M[2]
#define a41   M[3]
#define a12   M[4]
#define a22   M[5]
#define a32   M[6]
#define a42   M[7]
#define a13   M[8]
#define a23   M[9]
#define a33   M[10]
#define a43   M[11]
#define a14   M[12]
#define a24   M[13]
#define a34   M[14]
#define a44   M[15]
+


Detailed Description

+<description>. +

+

+Id:
+ matrix.cpp,v 1.33 2002/08/21 09:41:12 lecroart Exp
+

+ +

+Definition in file matrix.cpp.


Define Documentation

+

+ + + + +
+ + +
#define a11   M[0] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 66 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::fastInvert33, NLMISC::CMatrix::getI, NLMISC::CMatrix::getRot, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::mulVector, NLMISC::CMatrix::normalize, NLMISC::CMatrix::operator *, NLMISC::CMatrix::operator=, NLMISC::CMatrix::rotateY, NLMISC::CMatrix::rotateZ, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setRot, and NLMISC::CMatrix::translate.

+

+ + + + +
+ + +
#define a12   M[4] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 70 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::fastInvert33, NLMISC::CMatrix::getJ, NLMISC::CMatrix::getRot, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::mulVector, NLMISC::CMatrix::normalize, NLMISC::CMatrix::operator *, NLMISC::CMatrix::operator=, NLMISC::CMatrix::rotateX, NLMISC::CMatrix::rotateZ, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setRot, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose3x3.

+

+ + + + +
+ + +
#define a13   M[8] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 74 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::fastInvert33, NLMISC::CMatrix::getK, NLMISC::CMatrix::getRot, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::mulVector, NLMISC::CMatrix::normalize, NLMISC::CMatrix::operator *, NLMISC::CMatrix::operator=, NLMISC::CMatrix::rotateX, NLMISC::CMatrix::rotateY, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setRot, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose3x3.

+

+ + + + +
+ + +
#define a14   M[12] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 78 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::identity, NLMISC::CMatrix::inverted, NLMISC::CMatrix::movePos, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::operator *, NLMISC::CMatrix::operator=, NLMISC::CMatrix::serial, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setPos, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose.

+

+ + + + +
+ + +
#define a21   M[1] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 67 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::fastInvert33, NLMISC::CMatrix::getI, NLMISC::CMatrix::getRot, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::mulVector, NLMISC::CMatrix::normalize, NLMISC::CMatrix::operator *, NLMISC::CMatrix::rotateY, NLMISC::CMatrix::rotateZ, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setRot, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose3x3.

+

+ + + + +
+ + +
#define a22   M[5] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 71 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::fastInvert33, NLMISC::CMatrix::getJ, NLMISC::CMatrix::getRot, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::mulVector, NLMISC::CMatrix::normalize, NLMISC::CMatrix::operator *, NLMISC::CMatrix::rotateX, NLMISC::CMatrix::rotateZ, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setRot, and NLMISC::CMatrix::translate.

+

+ + + + +
+ + +
#define a23   M[9] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 75 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::fastInvert33, NLMISC::CMatrix::getK, NLMISC::CMatrix::getRot, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::mulVector, NLMISC::CMatrix::normalize, NLMISC::CMatrix::operator *, NLMISC::CMatrix::rotateX, NLMISC::CMatrix::rotateY, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setRot, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose3x3.

+

+ + + + +
+ + +
#define a24   M[13] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 79 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::identity, NLMISC::CMatrix::inverted, NLMISC::CMatrix::movePos, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::operator *, NLMISC::CMatrix::serial, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setPos, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose.

+

+ + + + +
+ + +
#define a31   M[2] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 68 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::fastInvert33, NLMISC::CMatrix::getI, NLMISC::CMatrix::getRot, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::mulVector, NLMISC::CMatrix::normalize, NLMISC::CMatrix::operator *, NLMISC::CMatrix::rotateY, NLMISC::CMatrix::rotateZ, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setRot, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose3x3.

+

+ + + + +
+ + +
#define a32   M[6] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 72 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::fastInvert33, NLMISC::CMatrix::getJ, NLMISC::CMatrix::getRot, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::mulVector, NLMISC::CMatrix::normalize, NLMISC::CMatrix::operator *, NLMISC::CMatrix::rotateX, NLMISC::CMatrix::rotateZ, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setRot, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose3x3.

+

+ + + + +
+ + +
#define a33   M[10] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 76 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::fastInvert33, NLMISC::CMatrix::getK, NLMISC::CMatrix::getRot, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::mulVector, NLMISC::CMatrix::normalize, NLMISC::CMatrix::operator *, NLMISC::CMatrix::rotateX, NLMISC::CMatrix::rotateY, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setRot, and NLMISC::CMatrix::translate.

+

+ + + + +
+ + +
#define a34   M[14] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 80 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::identity, NLMISC::CMatrix::inverted, NLMISC::CMatrix::movePos, NLMISC::CMatrix::mulPoint, NLMISC::CMatrix::operator *, NLMISC::CMatrix::serial, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setPos, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose.

+

+ + + + +
+ + +
#define a41   M[3] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 69 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::getProj, NLMISC::CMatrix::operator *, NLMISC::CMatrix::operator=, NLMISC::CMatrix::resetProj, NLMISC::CMatrix::rotateY, NLMISC::CMatrix::rotateZ, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setProj, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose.

+

+ + + + +
+ + +
#define a42   M[7] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 73 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::getProj, NLMISC::CMatrix::operator *, NLMISC::CMatrix::operator=, NLMISC::CMatrix::resetProj, NLMISC::CMatrix::rotateX, NLMISC::CMatrix::rotateZ, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setProj, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose.

+

+ + + + +
+ + +
#define a43   M[11] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 77 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::getProj, NLMISC::CMatrix::operator *, NLMISC::CMatrix::operator=, NLMISC::CMatrix::resetProj, NLMISC::CMatrix::rotateX, NLMISC::CMatrix::rotateY, NLMISC::CMatrix::scale, NLMISC::CMatrix::serial, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setProj, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose.

+

+ + + + +
+ + +
#define a44   M[15] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 81 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::getProj, NLMISC::CMatrix::operator *, NLMISC::CMatrix::operator=, NLMISC::CMatrix::resetProj, NLMISC::CMatrix::serial, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setProj, and NLMISC::CMatrix::translate.

+

+ + + + +
+ + +
#define MAT_IDENTITY   0 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 61 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::identity, and NLMISC::CMatrix::set.

+

+ + + + +
+ + +
#define MAT_PROJ   16 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 54 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::hasProj, NLMISC::CMatrix::hasProjectionPart, NLMISC::CMatrix::inverted, NLMISC::CMatrix::resetProj, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setProj, and NLMISC::CMatrix::transpose.

+

+ + + + +
+ + +
#define MAT_ROT   2 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 51 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::getRot, NLMISC::CMatrix::hasRot, NLMISC::CMatrix::inverted, NLMISC::CMatrix::normalize, NLMISC::CMatrix::rotateX, NLMISC::CMatrix::rotateY, NLMISC::CMatrix::rotateZ, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, and NLMISC::CMatrix::setRot.

+

+ + + + +
+ + +
#define MAT_SCALEANY   8 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 53 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::getRot, NLMISC::CMatrix::hasRot, NLMISC::CMatrix::hasScalePart, NLMISC::CMatrix::hasScaleUniform, NLMISC::CMatrix::inverted, NLMISC::CMatrix::normalize, NLMISC::CMatrix::rotateZ, NLMISC::CMatrix::scale, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, and NLMISC::CMatrix::setRot.

+

+ + + + +
+ + +
#define MAT_SCALEUNI   4 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 52 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::fastInvert33, NLMISC::CMatrix::getRot, NLMISC::CMatrix::hasRot, NLMISC::CMatrix::hasScalePart, NLMISC::CMatrix::hasScaleUniform, NLMISC::CMatrix::normalize, NLMISC::CMatrix::rotateZ, NLMISC::CMatrix::scale, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, and NLMISC::CMatrix::setRot.

+

+ + + + +
+ + +
#define MAT_TRANS   1 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 50 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::hasTrans, NLMISC::CMatrix::inverted, NLMISC::CMatrix::movePos, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setPos, NLMISC::CMatrix::translate, and NLMISC::CMatrix::transpose.

+

+ + + + +
+ + +
#define MAT_VALIDALL   (MAT_VALIDROT | MAT_VALIDPROJ) +
+
+ + + + + +
+   + + +

+ +

+Definition at line 59 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::operator=, NLMISC::CMatrix::setMulMatrix, and NLMISC::CMatrix::setMulMatrixNoProj.

+

+ + + + +
+ + +
#define MAT_VALIDPROJ   128 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 58 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::resetProj, NLMISC::CMatrix::set, NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setProj, and NLMISC::CMatrix::testExpandProj.

+

+ + + + +
+ + +
#define MAT_VALIDROT   64 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 57 of file matrix.cpp. +

+Referenced by NLMISC::CMatrix::setMulMatrix, NLMISC::CMatrix::setMulMatrixNoProj, NLMISC::CMatrix::setRot, and NLMISC::CMatrix::testExpandRot.

+ + + +
                                                                                                                                                                    +

+ + -- cgit v1.2.1