MFloatMatrix Class Reference
         
    
#include <MFloatMatrix.h>
A matrix math class for 4x4 matrices of floats. 
This class provides access to Maya's internal matrix math library allowing matrices to be handled easily, and in a manner compatible with internal Maya data structures. 
- animInfoCmd/animInfoCmd.cpp, anisotropicShader/anisotropicShader.cpp, cellShader/cellShader.cpp, D3DViewportRenderer/D3DResourceManager.cpp, DX11ViewportRenderer/DX11ResourceManager.cpp, flameShader/flameShader.cpp, lavaShader/lavaShader.cpp, noiseShader/noiseShader.cpp, sampleCmd/sampleCmd.cpp, sampleParticles/sampleParticles.cpp, slopeShader/slopeShaderNode.cpp, and solidCheckerShader/solidCheckerShader.cpp.
|  | 
| float | matrix [4][4] | 
|  | the matrix data 
 | 
|  | 
The default contstructor. 
The instance is initialized to the 4x4 identity matrix. 
 
 
The copy Constructor. 
- Parameters
- 
  
    | [in] | src | the instance to copy data from |  
 
 
 
Initialize the instance with a 4x4 matrix of doubles. 
- Parameters
- 
  
    | [in] | src_matrix | a 4x4 matrix of doubles |  
 
 
 
Initialize the instance with a 4x4 matrix of floats. 
- Parameters
- 
  
    | [in] | src_matrix | a 4x4 matrix of floats |  
 
 
 
The assignment operator. 
- Parameters
- 
  
    | [in] | src | The matrix to copy from. |  
 
- Returns
- A reference to this matrix. 
 
 
  
  | 
        
          | float operator() | ( | unsigned int | row, |  
          |  |  | unsigned int | col |  
          |  | ) |  | const |  | inline | 
 
Index operator. 
Given row and column indices, it will return the value at the specified location in the matrix.
- Parameters
- 
  
    | [in] | row | index of the row to access |  | [in] | col | index of the column to access |  
 
- Returns
- 
- the value at the specified location in the matrix. 
 
 
 
  
  | 
        
          | const float * operator[] | ( | unsigned int | row | ) | const |  | inline | 
 
Index operator. 
Returns an entire row of the matrix as an array of floats.
- Parameters
- 
  
    | [in] | row | index of the row to access |  
 
- Returns
- 
- float array containing the values of the specified row 
 
 
 
      
        
          | MStatus get | ( | double | dest[4][4] | ) | const | 
      
 
Fill a 4x4 matrix of doubles with the elements from the instance. 
- Parameters
- 
  
    | [out] | dest | the 4x4 matrix of doubles to populate |  
 
- Returns
- MS::kSuccess if successful and MS::kFailure otherwise. 
 
 
      
        
          | MStatus get | ( | float | dest[4][4] | ) | const | 
      
 
Fill a 4x4 matrix of floats with the elements from the instance. 
- Parameters
- 
  
    | [out] | dest | The 4x4 matrix of floats to populate. |  
 
- Returns
- MS::kSuccess if successful and MS::kFailure otherwise. 
 
 
Compute and return the transpose of this instance. 
- Returns
- The transposed matrix 
 
 
Set this instance to the 4x4 identity matrix. 
- Returns
- A reference to this matrix. 
 
 
Set this instance to the inner product of the two argument matrices. 
- Parameters
- 
  
    | [in] | left | The left hand matrix for the operation |  | [in] | right | The right hand matrix for the operation |  
 
- Returns
- A reference to the result. 
 
 
The in place matrix addition operator. 
- Parameters
- 
  
  
- Returns
- A reference to the result. 
 
 
The matrix addition operator. 
- Parameters
- 
  
  
- Returns
- Sum of both matrices. 
 
 
The in place matrix subtraction operator. 
- Parameters
- 
  
    | [in] | right | Matrix to subtract. |  
 
- Returns
- A reference to the result. 
 
 
The matrix subtraction operator. 
- Parameters
- 
  
    | [in] | right | Matrix to subtract. |  
 
- Returns
- Difference of both matrices. 
 
 
The in place matrix multiplication operator. 
- Parameters
- 
  
    | [in] | right | Matrix to multiply. |  
 
- Returns
- A reference to the result. 
 
 
The matrix multiplication operator. 
- Parameters
- 
  
    | [in] | right | Matrix to multiply. |  
 
- Returns
- Product of both matrices. 
 
 
The in place matrix multiply by a scalar operator. 
- Parameters
- 
  
    | [in] | factor | scaling factor. |  
 
- Returns
- A reference to the result. 
 
 
The matrix multiply by a scalar operator. 
- Parameters
- 
  
    | [in] | factor | Scaling factor. |  
 
- Returns
- Scaled matrix. 
 
 
The matrix equality operator. 
- Parameters
- 
  
    | [in] | other | Matrix to test with. |  
 
- Returns
- True is the matrices are identical. 
 
 
The matrix inequality operator. 
- Parameters
- 
  
    | [in] | other | Matrix to test with. |  
 
- Returns
- True is the matrices are not identical. 
 
 
Compute and return the inverse of this instance. 
- Returns
- The inverted matrix 
 
 
Compute and return the adjoint of this instance. 
- Returns
- The adjoint of this matrix 
 
 
Compute and return a homogenized version of this instance. 
- Returns
- The homogenized matrix 
 
 
Compute and return the determinant of this instance. 
- Returns
- The determinant 
 
 
Compute and return the determinant of the upper left 3x3 submatrix of this instance. 
- Returns
- The determinant 
 
 
      
        
          | bool isEquivalent | ( | const MFloatMatrix & | other, | 
        
          |  |  | float | tolerance = MFloatMatrix_kTol | 
        
          |  | ) |  | const | 
      
 
Determine if the given matrix is equivalent to this instance within the specified tolerance. 
- Parameters
- 
  
    | [in] | other | the matrix to compare to |  | [in] | tolerance | the tolerance to use during the comparison |  
 
- Returns
- True if the matrices are equivalent and false otherwise 
 
 
  
  | 
        
          | float & operator() | ( | unsigned int | row, |  
          |  |  | unsigned int | col |  
          |  | ) |  |  |  | inline | 
 
NO SCRIPT SUPPORT. 
Index operator.
Given row and column indices, it will return the value at the specified location in the matrix.
- Parameters
- 
  
    | [in] | row | index of the row to access |  | [in] | col | index of the column to access |  
 
- Returns
- 
- the value at the specified location in the matrix. 
 
 
 
  
  | 
        
          | float * operator[] | ( | unsigned int | row | ) |  |  | inline | 
 
NO SCRIPT SUPPORT. 
Index operator.
Returns an entire row of the matrix as an array of floats.
- Parameters
- 
  
    | [in] | row | index of the row to access |  
 
- Returns
- 
- float array containing the values of the specified row 
 
 
 
  
  | 
        
          | const char * className | ( |  | ) |  |  | static | 
 
Returns the name of this class. 
- Returns
- The name of this class. 
 
 
NO SCRIPT SUPPORT. 
- Parameters
- 
  
    | [in] | factor | Scaling factor. |  | [in] | right | Matrix to multiply. |  
 
- Returns
- Scaled matrix. 
 
 
  
  | 
        
          | OPENMAYA_EXPORT std::ostream& operator<< | ( | std::ostream & | os, |  
          |  |  | const MFloatMatrix & | m |  
          |  | ) |  |  |  | friend | 
 
NO SCRIPT SUPPORT. 
The format used is [[r11, r12, r13, r14] [r21, r22, r23, r24] [r31, r32, r33, r34] [r41, r42, r43, r44]].
- Parameters
- 
  
    | [in] | os | the ostream to print to |  | [in] | m | the MFloatMatrix whose value is to be printed |  
 
- Returns
- The ostream reference, s, provided as the first parameter. 
 
 
The documentation for this class was generated from the following files:
- MFloatMatrix.h
- MFloatMatrix.cpp