VisualizationFoundation class CAT3x3Matrix

Usage: you must use this class as is. You should never derive it.


public class CAT3x3Matrix

Class to create a 2D matrix.
Role: This object manages matrix transformations appliables to 2D elements, in the homogeneous coordinate system, enabling so translations to be viewed as matrix operations.
The CAT3x3Matrix is commonly used to define the transformation that is to be applied to CAT2DBagRep objects.


Constructor and Destructor Index


o CAT3x3Matrix(void)
Constructs an identity 2D matrix.
o CAT3x3Matrix(CATMathAxis2D&)
Constructs a 2D matrix from axis.
o CAT3x3Matrix(CATMathVector2Df&)
Constructs a 2D translation matrix from a translation vector.
o CAT3x3Matrix(float[2][2],CATMathPoint2Df&)
Constructs a 2D matrix from a float array and a translation vector.
o CAT3x3Matrix(CATMathVector2Df&,CATMathVector2Df&,CATMathPoint2Df&)
Constructs a 2D matrix from 3 vectors.
o ~CAT3x3Matrix(void)
Destructor.

Method Index


o GetComponents(CATMathVector2Df&,CATMathVector2Df&,CATMathPoint2Df&)
Gets the 2D matrix components.
o GetDeterminant(void)
Gets the determinant of the 2D matrix.
o GetInvertedMatrix(void)
Gets the inverted 2D matrix.
o GetInvertedMatrix(CAT3x3Matrix&)
Gets the inverted 2D matrix.
o GetMatrix(void)
Gets the 2D matrix components.
o GetScaling(void)
Gets the scaling factor of the 2D matrix.
o GetTranslation(void)
Gets the 2D matrix translation vector.
o GetTranslation(CATMathVector2Df&)
Gets the 2D matrix translation vector.
o IsIdentity(void)
Indicates if the 2D matrix is an identity matrix.
o SetComponents(CATMathVector2Df&,CATMathVector2Df&,CATMathPoint2Df&)
Sets the 2D matrix components.
o SetTranslation(CATMathVector2Df&)
Sets the 2D matrix translation from a vector.
o operator *(CAT3x3Matrix&)
Multiplication operator.
o operator *(CATMathPoint2Df&)
Multiplies a matrix by a 2D point.
o operator *(CATMathVector2Df&)
Multiplies a matrix by a 2D vector.
o operator *(CATMathDirection2Df&)
Multiplies a matrix by a 2D direction.
o operator *=(CAT3x3Matrix&)
Multiplication assignment operator.
o operator =(CAT3x3Matrix&)
Assignment operator.

Constructor and Destructor


o CAT3x3Matrix
public CAT3x3Matrix(void )
Constructs an identity 2D matrix.
o CAT3x3Matrix
public CAT3x3Matrix( const CATMathAxis2D& iAxis)
Constructs a 2D matrix from axis.
Parameters:
iAxis
The axis.
o CAT3x3Matrix
public CAT3x3Matrix( const CATMathVector2Df& iTra)
Constructs a 2D translation matrix from a translation vector.
Parameters:
iTra
The translation vector.
o CAT3x3Matrix
public CAT3x3Matrix( const float[2][2] iMat2x2,
const CATMathPoint2Df& iTra)
Constructs a 2D matrix from a float array and a translation vector.
Parameters:
iMat2x2
The 2x2 float array.
iTra
The translation vector.
o CAT3x3Matrix
public CAT3x3Matrix( const CATMathVector2Df& iU,
const CATMathVector2Df& iV,
const CATMathPoint2Df& iTra)
Constructs a 2D matrix from 3 vectors.
Parameters:
iU
The fisrt vector.
iV
The second vector.
iTra
The fourth vector (Translation).
o ~CAT3x3Matrix
public virtual ~CAT3x3Matrix(void )
Destructor.

Methods


o GetComponents
public void GetComponents(CATMathVector2Df& oU,
CATMathVector2Df& oV,
CATMathPoint2Df& oTra) const
Gets the 2D matrix components.
Parameters:
oU
The returned U rotation vector.
oV
The returned V rotation vector.
oTra
The returned translation point.
o GetDeterminant
public inline float GetDeterminant(void ) const
Gets the determinant of the 2D matrix.
Returns:
The value of the determinant.
o GetInvertedMatrix
public CAT3x3Matrix GetInvertedMatrix(void ) const
Gets the inverted 2D matrix.
Returns:
The returned inverted matrix.
o GetInvertedMatrix
public void GetInvertedMatrix(CAT3x3Matrix& ) const
Gets the inverted 2D matrix.
Parameters:
oMatrix
The returned inverted matrix.
o GetMatrix
public inline float * GetMatrix(void ) const
Gets the 2D matrix components.
Returns:
The float pointer of the 2D matrix components.
o GetScaling
public inline float GetScaling(void ) const
Gets the scaling factor of the 2D matrix.
Returns:
The value of the scaling factor of the 3D matrix.
o GetTranslation
public CATMathVector2Df GetTranslation(void ) const
Gets the 2D matrix translation vector.
Returns:
The returned translation vector.
o GetTranslation
public void GetTranslation(CATMathVector2Df& oTra) const
Gets the 2D matrix translation vector.
Parameters:
oTra
The returned translation vector.
o IsIdentity
public int IsIdentity(void ) const
Indicates if the 2D matrix is an identity matrix.
Returns:
The status of the 2D matrix.
o SetComponents
public void SetComponents( const CATMathVector2Df& iU,
const CATMathVector2Df& iV,
const CATMathPoint2Df& iTra)
Sets the 2D matrix components.
Parameters:
iU
The U rotation vector.
iV
The V rotation vector.
iTra
The translation point.
o SetTranslation
public void SetTranslation( const CATMathVector2Df& iTra)
Sets the 2D matrix translation from a vector.
Parameters:
iTra
The translation vector.
o operator *
public CAT3x3Matrix operator *( const CAT3x3Matrix& iMatrix) const
Multiplication operator.
Parameters:
iMatrix
The matrix to multiply with the current one
Returns:
The matrix resulting from the multiplication
o operator *
public CATMathPoint2Df operator *( const CATMathPoint2Df& iPoint) const
Multiplies a matrix by a 2D point.
Role: The 2x2 submatrix is multiplied by the point coordinate doublet and the matrix translation vector is added to the multiplication result
Parameters:
iPoint
The point whose coordinate doublet is to be multiplied by the matrix
Returns:
The point resulting from the multiplication
o operator *
public CATMathVector2Df operator *( const CATMathVector2Df& iVector) const
Multiplies a matrix by a 2D vector.
Role: The 2x2 submatrix is multiplied by the vector component doublet and the matrix translation vector is added to the multiplication result
Parameters:
iVector
The vector whose component doublet is to be multiplied by the matrix
Returns:
The vector resulting from the multiplication
o operator *
public CATMathDirection2Df operator *( const CATMathDirection2Df& iDirection) const
Multiplies a matrix by a 2D direction.
Role: The 2x2 submatrix is multiplied by the direction component doublet and the matrix translation vector is added to the multiplication result
Parameters:
iDirection
The direction whose component doublet is to be multiplied by the matrix
Returns:
The direction resulting from the multiplication
o operator *=
public CAT3x3Matrix & operator *=( const CAT3x3Matrix& iMatrix)
Multiplication assignment operator.
Parameters:
iMatrix
The matrix to multiply with the current one
Returns:
The matrix resulting from the multiplication
o operator =
public CAT3x3Matrix & operator =( const CAT3x3Matrix& iMatrix)
Assignment operator.
Parameters:
iMatrix
The matrix to assign to the current one
Returns:
The matrix resulting from the assignment

This object is included in the file: CAT3x3Matrix.h
If needed, your Imakefile.mk should include the module: CATVisFoundation

Copyright © 1999-2015, Dassault Systèmes. All rights reserved.