NAME
vtkMatrix4x4 - represent and manipulate 4x4 transformation matrices
SYNOPSIS
#include "/opt/vtk-c++/common/vtkMatrix4x4.h"
class VTK_EXPORT vtkMatrix4x4 : public vtkObject
float Element[4][4];
vtkMatrix4x4 ();
vtkMatrix4x4 (const vtkMatrix4x4& m);
static vtkMatrix4x4 *New() {return new vtkMatrix4x4;};
const char *GetClassName () {return "vtkMatrix4x4";};
void PrintSelf (ostream& os, vtkIndent indent);
void operator= (float element);
vtkMatrix4x4& operator= (const vtkMatrix4x4& source);
float *operator[](const unsigned int i) {return &(Element[i][0]);};
void Invert (vtkMatrix4x4 in,vtkMatrix4x4 & out);
void Invert (void) { Invert(*this,*this);};
void Transpose (vtkMatrix4x4 in,vtkMatrix4x4 & out);
void Transpose (void) { Transpose(*this,*this);};
void MultiplyPoint(float in[4], float out[4]);
void PointMultiply(float in[4], float out[4]);
void Adjoint (vtkMatrix4x4 & in,vtkMatrix4x4 & out);
float Determinant (vtkMatrix4x4 & in);
void SetElement(int i, int j, float value);
float GetElement(int i, int j);
DESCRIPTION
vtkMatrix4x4 is a class to represent and manipulate 4x4 matrices. Specifically, it is designed to work on 4x4 transformation matrices found in 3D rendering using homogeneous coordinates [x y z w].
SUMMARY
void SetElement (int i, int j, float value)
Sets the element i,j in the matrix.
float GetElement (int i, int j)
Returns the element i,j from the matrix.
vtkMatrix4x4 ()
Construct a 4x4 identity matrix.
void operator= (float element)
Set all the elements of the matrix to the given value.
void MultiplyPoint(float in[4],float result[4])
Multiply this matrix by a point (in homogeneous coordinates). and return the result in result. The in[4] and result[4] arrays must both be allocated but they can be the same array.
void PointMultiply(float in[4],float result[4])
Multiply a point (in homogeneous coordinates) by this matrix, and return the result in result. The in[4] and result[4] arrays must both be allocated, but they can be the same array.
void Invert (vtkMatrix4x4 in,vtkMatrix4x4 & out)
Matrix Inversion (adapted from Richard Carling in "Graphics Gems," Academic Press, 1990).
float Determinant (vtkMatrix4x4 & in)
Compute the determinant of the matrix and return it.
void Adjoint (vtkMatrix4x4 & in,vtkMatrix4x4 & out)
Compute adjoint of the matrix and put it into out.
void Transpose (vtkMatrix4x4 in,vtkMatrix4x4 & out)
Transpose the matrix and put it into out.