1 #ifndef COIN_SBMATRIX_H 2 #define COIN_SBMATRIX_H 37 #include <Inventor/SbBasic.h> 45 typedef float SbMat[4][4];
50 SbMatrix(
const float a11,
const float a12,
const float a13,
const float a14,
51 const float a21,
const float a22,
const float a23,
const float a24,
52 const float a31,
const float a32,
const float a33,
const float a34,
53 const float a41,
const float a42,
const float a43,
const float a44);
59 void setValue(
const SbMat & m);
61 void setValue(
const float * pMat);
62 const SbMat & getValue(
void)
const;
64 void makeIdentity(
void);
67 float det3(
int r1,
int r2,
int r3,
68 int c1,
int c2,
int c3)
const;
69 float det3(
void)
const;
70 float det4(
void)
const;
72 SbBool equals(
const SbMatrix & m,
float tolerance)
const;
75 void getValue(SbMat & m)
const;
77 void setScale(
const float s);
78 void setScale(
const SbVec3f & s);
79 void setTranslate(
const SbVec3f & t);
83 void setTransform(
const SbVec3f & translation,
93 SbBool LUDecomposition(
int index[4],
float & d);
94 void LUBackSubstitution(
int index[4],
float b[4])
const;
101 void multLineMatrix(
const SbLine & src,
SbLine & dst)
const;
104 void print(FILE * fp)
const;
106 operator float*(void);
107 operator SbMat&(void);
109 float * operator [](
int i);
110 const float * operator [](
int i)
const;
112 SbMatrix & operator =(
const SbMat & m);
118 friend COIN_DLL_API
int operator ==(
const SbMatrix & m1,
const SbMatrix & m2);
119 friend COIN_DLL_API
int operator !=(
const SbMatrix & m1,
const SbMatrix & m2);
124 void operator /=(
const float v);
125 void operator *=(
const float v);
132 #endif // !COIN_SBMATRIX_H The SbVec4f class is a 4 dimensional vector with floating point coordinates.
Definition: SbVec4f.h:49
int operator==(const SbBox2s &b1, const SbBox2s &b2)
Definition: SbBox2s.h:102
int operator!=(const SbBox2s &b1, const SbBox2s &b2)
Definition: SbBox2s.h:106
The SbRotation class represents a rotation in 3D space.
Definition: SbRotation.h:44
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:51
The SbLine class represents a line in 3D space.
Definition: SbLine.h:41
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition: SbMatrix.h:47
SbVec2s operator*(const SbVec2s &v, int d)
The SbDPMatrix class is a 4x4 dimensional representation of a double-precision matrix.
Definition: SbDPMatrix.h:47