21#include "vtkCommonMathModule.h"  
   24VTK_ABI_NAMESPACE_BEGIN
 
   58  static void DeepCopy(
double elements[9], 
const double newElements[9]);
 
   77  static void Zero(
double elements[9]);
 
   99  static void Invert(
const double inElements[9], 
double outElements[9]);
 
  110  static void Transpose(
const double inElements[9], 
double outElements[9]);
 
  125  static void MultiplyPoint(
const double elements[9], 
const float in[3], 
float out[3]);
 
  126  static void MultiplyPoint(
const double elements[9], 
const double in[3], 
double out[3]);
 
  135  static void Multiply3x3(
const double a[9], 
const double b[9], 
double c[9]);
 
  144  static void Adjoint(
const double inElements[9], 
double outElements[9]);
 
  155  void SetElement(
int i, 
int j, 
double value);
 
  160  double GetElement(
int i, 
int j)
 const { 
return this->Element[i][j]; }
 
  174  const double* 
GetData()
 const { 
return *this->Element; }
 
  180  double Element[3][3]; 
 
  189  if (this->
Element[i][j] != value)
 
  199  if (M[0] == 1.0 && M[4] == 1.0 && M[8] == 1.0 && M[1] == 0.0 && M[2] == 0.0 && M[3] == 0.0 &&
 
  200    M[5] == 0.0 && M[6] == 0.0 && M[7] == 0.0)
 
a simple class to control print indentation
 
represent and manipulate 3x3 transformation matrices
 
static void Identity(double elements[9])
 
const double * GetData() const
Return a pointer to the first element of the matrix (double[9]).
 
double Determinant()
Compute the determinant of the matrix and return it.
 
static void Multiply3x3(vtkMatrix3x3 *a, vtkMatrix3x3 *b, vtkMatrix3x3 *c)
Multiplies matrices a and b and stores the result in c (c=a*b).
 
static void Invert(const double inElements[9], double outElements[9])
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
 
static void Transpose(const double inElements[9], double outElements[9])
 
void DeepCopy(const double elements[9])
Non-static member function.
 
static void Zero(double elements[9])
 
void MultiplyPoint(const float in[3], float out[3])
Multiply a homogeneous coordinate by this matrix, i.e.
 
static double Determinant(const double elements[9])
 
double GetElement(int i, int j) const
Returns the element i,j from the matrix.
 
void Zero()
Set all of the elements to zero.
 
void MultiplyPoint(const double in[3], double out[3])
 
void SetElement(int i, int j, double value)
Sets the element i,j in the matrix.
 
static void DeepCopy(double elements[9], const double newElements[9])
 
static void DeepCopy(double elements[9], vtkMatrix3x3 *source)
 
static void Invert(vtkMatrix3x3 *in, vtkMatrix3x3 *out)
Matrix Inversion (adapted from Richard Carling in "Graphics Gems," Academic Press,...
 
static void Multiply3x3(const double a[9], const double b[9], double c[9])
 
static void MultiplyPoint(const double elements[9], const double in[3], double out[3])
 
void Identity()
Set equal to Identity matrix.
 
static void Transpose(vtkMatrix3x3 *in, vtkMatrix3x3 *out)
Transpose the matrix and put it into out.
 
void DeepCopy(vtkMatrix3x3 *source)
Set the elements of the matrix to the same values as the elements of the source Matrix.
 
static void MultiplyPoint(const double elements[9], const float in[3], float out[3])
 
static vtkMatrix3x3 * New()
Construct a 3x3 identity matrix.
 
double * GetData()
Return a pointer to the first element of the matrix (double[9]).
 
void Adjoint(vtkMatrix3x3 *in, vtkMatrix3x3 *out)
Compute adjoint of the matrix and put it into out.
 
static void Adjoint(const double inElements[9], double outElements[9])
 
abstract base class for most VTK objects
 
virtual void Modified()
Update the modification time for this object.
 
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
 
#define VTK_SIZEHINT(...)