1 #ifndef COIN_SBMATRIX_H 2 #define COIN_SBMATRIX_H 28 #include <Inventor/SbBasic.h> 35 typedef float SbMat[4][4];
40 SbMatrix(
const float a11,
const float a12,
const float a13,
const float a14,
41 const float a21,
const float a22,
const float a23,
const float a24,
42 const float a31,
const float a32,
const float a33,
const float a34,
43 const float a41,
const float a42,
const float a43,
const float a44);
48 SbMatrix & operator =(
const SbMat & m);
50 operator float*(void);
52 void setValue(
const SbMat & m);
53 const SbMat & getValue(
void)
const;
55 void makeIdentity(
void);
58 float det3(
int r1,
int r2,
int r3,
59 int c1,
int c2,
int c3)
const;
60 float det3(
void)
const;
61 float det4(
void)
const;
63 SbBool equals(
const SbMatrix & m,
float tolerance)
const;
66 operator SbMat&(void);
67 float * operator [](
int i);
68 const float * operator [](
int i)
const;
72 friend COIN_DLL_API
int operator ==(
const SbMatrix & m1,
const SbMatrix & m2);
73 friend COIN_DLL_API
int operator !=(
const SbMatrix & m1,
const SbMatrix & m2);
74 void getValue(SbMat & m)
const;
76 void setScale(
const float s);
77 void setScale(
const SbVec3f & s);
78 void setTranslate(
const SbVec3f & t);
82 void setTransform(
const SbVec3f & translation,
92 SbBool LUDecomposition(
int index[4],
float & d);
93 void LUBackSubstitution(
int index[4],
float b[4])
const;
100 void multLineMatrix(
const SbLine & src,
SbLine & dst)
const;
103 void print(FILE * fp)
const;
108 void operator /=(
const float v);
109 void operator *=(
const float v);
116 #endif // !COIN_SBMATRIX_H The SbVec4f class is a 4 dimensional vector with floating point coordinates.
Definition: SbVec4f.h:34
The SbRotation class represents a rotation in 3D space.SbRotation is used extensively throughout the ...
Definition: SbRotation.h:33
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
The SbLine class represents a line in 3D space.SbLine provides a way of specifying a directed line...
Definition: SbLine.h:32
The SbMatrix class is a 4x4 dimensional representation of a matrix.SbMatrix is used by many other cla...
Definition: SbMatrix.h:37