1 #ifndef COIN_SBMATRIX_H 2 #define COIN_SBMATRIX_H 37 #include <Inventor/SbBasic.h> 44 typedef float SbMat[4][4];
49 SbMatrix(
const float a11,
const float a12,
const float a13,
const float a14,
50 const float a21,
const float a22,
const float a23,
const float a24,
51 const float a31,
const float a32,
const float a33,
const float a34,
52 const float a41,
const float a42,
const float a43,
const float a44);
58 void setValue(
const SbMat & m);
60 void setValue(
const float * pMat);
61 const SbMat & getValue(
void)
const;
63 void makeIdentity(
void);
66 float det3(
int r1,
int r2,
int r3,
67 int c1,
int c2,
int c3)
const;
68 float det3(
void)
const;
69 float det4(
void)
const;
71 SbBool equals(
const SbMatrix & m,
float tolerance)
const;
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;
105 operator float*(void);
106 operator SbMat&(void);
108 float * operator [](
int i);
109 const float * operator [](
int i)
const;
111 SbMatrix & operator =(
const SbMat & m);
117 friend COIN_DLL_API
int operator ==(
const SbMatrix & m1,
const SbMatrix & m2);
118 friend COIN_DLL_API
int operator !=(
const SbMatrix & m1,
const SbMatrix & m2);
123 void operator /=(
const float v);
124 void operator *=(
const float v);
131 #endif // !COIN_SBMATRIX_H The SbVec4f class is a 4 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec4f.h:49
The SbRotation class represents a rotation in 3D space.SbRotation is used extensively throughout the ...
Definition: SbRotation.h:44
The SbVec3f class is a 3 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec3f.h:51
The SbLine class represents a line in 3D space.SbLine provides a way of specifying a directed line...
Definition: SbLine.h:41
The SbMatrix class is a 4x4 dimensional representation of a matrix.SbMatrix is used by many other cla...
Definition: SbMatrix.h:46
The SbDPMatrix class is a 4x4 dimensional representation of a double-precision matrix.This class is like the SbMatrix class, but uses double-precision floating point values for its elements. For more class documentation, see SbMatrix.
Definition: SbDPMatrix.h:47