X3DTK::SFMatrix34f Class Reference
[base]

Class declared in <X3DTK/kernel.h> providing a 4*4 matrix in homogeneous coordinates. More...

List of all members.

Public Member Functions

Static Public Member Functions

Public Attributes

Static Public Attributes

Friends


Detailed Description

Class declared in <X3DTK/kernel.h> providing a 4*4 matrix 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.


Constructor & Destructor Documentation

X3DTK::SFMatrix34f::SFMatrix34f  ) 
 

Constructor.

X3DTK::SFMatrix34f::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.

X3DTK::SFMatrix34f::SFMatrix34f const float  GLMatrix[16]  )  [explicit]
 

Constructor from a GL matrix.

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

Constructor from the three vectors and the point.

X3DTK::SFMatrix34f::SFMatrix34f const SFVec3f translation,
const SFVec3f center,
const SFRotation rotation,
const SFRotation scaleOrientation,
const SFVec3f scale
 

Constructor from an X3D::Transform attributes.

X3DTK::SFMatrix34f::SFMatrix34f const SFMatrix34f m  ) 
 

Copy constructor.


Member Function Documentation

SFMatrix34f X3DTK::SFMatrix34f::i  ) 
 

General inverse of the matrix.

SFMatrix34f X3DTK::SFMatrix34f::iu  ) 
 

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

SFMatrix34f X3DTK::SFMatrix34f::rotation float  angle,
const SFVec3f u
[static]
 

Returns a general rotation matrix.

SFMatrix34f X3DTK::SFMatrix34f::rotationX float  angle  )  [static]
 

Returns a rotation matrix around the x axis.

SFMatrix34f X3DTK::SFMatrix34f::rotationY float  angle  )  [static]
 

Returns a rotation matrix around the y axis.

SFMatrix34f X3DTK::SFMatrix34f::rotationZ float  angle  )  [static]
 

Returns a rotation matrix around the z axis.

SFMatrix34f X3DTK::SFMatrix34f::scale34 float  sx,
float  sy,
float  sz
[static]
 

Returns a scale matrix.

float* X3DTK::SFMatrix34f::toFloat16  )  const
 

Conversion to float[16].

SFMatrix34f X3DTK::SFMatrix34f::translation const SFVec3f t  )  [static]
 

Returns a translation matrix.


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*.

bool operator!= const SFMatrix34f A,
const SFMatrix34f B
[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-.

bool operator== const SFMatrix34f A,
const SFMatrix34f B
[friend]
 

Overloaded operator*.


Member Data Documentation

float X3DTK::SFMatrix34f::_11
 

1, 1 coordinate.

float X3DTK::SFMatrix34f::_12
 

1, 2 coordinate.

float X3DTK::SFMatrix34f::_13
 

1, 3 coordinate.

float X3DTK::SFMatrix34f::_14
 

1, 4 coordinate.

float X3DTK::SFMatrix34f::_21
 

2, 1 coordinate.

float X3DTK::SFMatrix34f::_22
 

2, 2 coordinate.

float X3DTK::SFMatrix34f::_23
 

2, 3 coordinate.

float X3DTK::SFMatrix34f::_24
 

2, 4 coordinate.

float X3DTK::SFMatrix34f::_31
 

3, 1 coordinate.

float X3DTK::SFMatrix34f::_32
 

3, 2 coordinate.

float X3DTK::SFMatrix34f::_33
 

3, 3 coordinate.

float X3DTK::SFMatrix34f::_34
 

3, 4 coordinate.

const SFMatrix34f X3DTK::SFMatrix34f::identity [static]
 

Identity matrix.

const SFMatrix34f X3DTK::SFMatrix34f::null [static]
 

null matrix


Generated on Fri Jul 30 12:02:34 2004 for X3DToolKit by doxygen 1.3.6