Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

SFMatrix34f Class Reference

Class providing an implementation of the matrices in homogeneous coordinates. More...

List of all members.

Public Member Functions

Public Attributes

Friends


Detailed Description

Class providing an implementation of the matrices in homogeneous coordinates.

The matrices are represented by 3*4 elements to economize memory and unnecessary calculus. The fourth coordinates is not represented because the first three columns represent the vectors and the fourth the point.

Definition at line 21 of file SFMatrix34f.h.


Constructor & Destructor Documentation

SFMatrix34f  ) 
 

Default constructor.

SFMatrix34f float  _11,
float  _21,
float  _31,
float  _12,
float  _22,
float  _32,
float  _13,
float  _23,
float  _33,
float  _14,
float  _24,
float  _34
 

Constructor with the coordinates in parameters.

SFMatrix34f const float  GLMatrix[16]  )  [explicit]
 

Constructor from a GL matrix.

SFMatrix34f const SFVec3f vx,
const SFVec3f vy,
const SFVec3f vz,
const SFPoint3f p
 

Constructor from the three vectors and the point.

SFMatrix34f const SFMatrix34f &  m  ) 
 

Copy constructor.


Member Function Documentation

SFMatrix34f i  ) 
 

General inverse of the matrix.

SFMatrix34f iu  ) 
 

Inverse of the matrix taking in account that the matrix is unit and performing the operation faster than i().

void toFloat16 std::vector< float > &  M  )  const
 

Conversion to float[16].


Friends And Related Function Documentation

SFPoint3f operator * const SFMatrix34f &  m,
const SFPoint3f v
[friend]
 

Overloaded operator*.

SFVec3f operator * const SFMatrix34f &  m,
const SFVec3f v
[friend]
 

Overloaded operator*.

SFMatrix34f operator * const float  a,
const SFMatrix34f &  m
[friend]
 

Overloaded operator*.

SFMatrix34f operator * const SFMatrix34f &  m1,
const SFMatrix34f &  m2
[friend]
 

Overloaded operator*.

SFMatrix34f operator+ const SFMatrix34f &  m1,
const SFMatrix34f &  m2
[friend]
 

Overloaded operator+.

SFMatrix34f operator- const SFMatrix34f &  m1,
const SFMatrix34f &  m2
[friend]
 

Overloaded operator-.


Member Data Documentation

float _11
 

1, 1 coordinate.

Definition at line 25 of file SFMatrix34f.h.

float _12
 

1, 2 coordinate.

Definition at line 32 of file SFMatrix34f.h.

float _13
 

1, 3 coordinate.

Definition at line 39 of file SFMatrix34f.h.

float _14
 

1, 4 coordinate.

Definition at line 46 of file SFMatrix34f.h.

float _21
 

2, 1 coordinate.

Definition at line 27 of file SFMatrix34f.h.

float _22
 

2, 2 coordinate.

Definition at line 34 of file SFMatrix34f.h.

float _23
 

2, 3 coordinate.

Definition at line 41 of file SFMatrix34f.h.

float _24
 

2, 4 coordinate.

Definition at line 48 of file SFMatrix34f.h.

float _31
 

3, 1 coordinate.

Definition at line 29 of file SFMatrix34f.h.

float _32
 

3, 2 coordinate.

Definition at line 36 of file SFMatrix34f.h.

float _33
 

3, 3 coordinate.

Definition at line 43 of file SFMatrix34f.h.

float _34
 

3, 4 coordinate.

Definition at line 50 of file SFMatrix34f.h.


The documentation for this class was generated from the following file:
Generated on Wed May 14 10:38:15 2003 for X3DToolKit by doxygen1.3