All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Mathematics Class CATMath2x2Matrix

CATMath2x2Matrix
 

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


public class CATMath2x2Matrix

Class representing a matrix in dimension 2.

Matrix= A11 A12
A21 A22


Constructor and Destructor Index


o CATMath2x2Matrix()
Constructs the Identity CATMath2x2Matrix.
o CATMath2x2Matrix(CATMath2x2Matrix&)
Copy constructor.
o CATMath2x2Matrix(CATMathVector2D&)
Constructs a reflection around a direction.
o CATMath2x2Matrix(CATMathVector2D&,CATMathVector2D&,short)
Constructs a CATMath2x2Matrix from two colums.
o CATMath2x2Matrix(double,CATMathTransfoType)
Constructs a CATMath2x2Matrix from a scalar.
o CATMath2x2Matrix(double,double)
Constructs a diagonal CATMath2x2Matrix.
o CATMath2x2Matrix(double,double,double,double)
Constructs a CATMath2x2Matrix from its coefficients.

Method Index


o Determinant()
Returns the determinant of this CATMath2x2Matrix.
o GetCoef(double&,double&,double&,double&)
Retrieves the coefficients of this CATMath2x2Matrix.
o GetFirstColumn()
Retrieves the first column of this CATMath2x2Matrix.
o GetFirstColumn(CATMathVector2D&)
Retrieves the first column of this CATMath2x2Matrix.
o GetSecondColumn()
Retrieves the second column of this CATMath2x2Matrix.
o GetSecondColumn(CATMathVector2D&)
Retrieves the second column of this CATMath2x2Matrix.
o Inverse(CATMath2x2Matrix&)
Inverses this CATMath2x2Matrix.
o IsDirect()
Tests whether this CATMath2x2Matrix is direct.
o IsIsometry()
Tests whether this CATMath2x2Matrix is an isometry.
o IsScaling()
Tests whether this CATMath2x2Matrix is a scaling.
o SetCoef(double,double,double,double)
Sets the coefficients of this CATMath2x2Matrix.
o SetFirstColumn(CATMathVector2D&)
Modifies the first column of this CATMath2x2Matrix.
o SetMatrix(CATMathVector2D&,CATMathVector2D&)
Modifies the columns of this CATMath2x2Matrix.
o SetSecondColumn(CATMathVector2D&)
Modifies the second column of this CATMath2x2Matrix.
o Trace()
Returns the trace of this CATMath2x2Matrix.
o Transpose(CATMath2x2Matrix&)
Transposes this CATMath2x2Matrix.

Constructor and Destructor


o CATMath2x2Matrix
public CATMath2x2Matrix()
Constructs the Identity CATMath2x2Matrix.
Returns:
Matrix= 1 0
0 1
o CATMath2x2Matrix
public CATMath2x2Matrix( const CATMath2x2Matrix& iMatrixToCopy)
Copy constructor.
o CATMath2x2Matrix
public CATMath2x2Matrix( const CATMathVector2D& iReflectDirection)
Constructs a reflection around a direction.
o CATMath2x2Matrix
public CATMath2x2Matrix( const CATMathVector2D& iV1,
const CATMathVector2D& iV2,
short iTranspose=0)
Constructs a CATMath2x2Matrix from two colums.
Parameters:
iTranspose
0
to construct a matrix with first column iV1 and second column iV2
1
to construct a matrix resulting from the product of iV1 by the transpose of iV2.
o CATMath2x2Matrix
public CATMath2x2Matrix( const double iA,
const CATMathTransfoType iType= CATMathScaling)
Constructs a CATMath2x2Matrix from a scalar.
Returns:
If iType==CATMathScaling
Matrix= iA 0
0 iA
If iType==CATMathRotation, iA is expressed in radians.
Matrix= cos(iA) -sin(iA)
sin(iA) cos(iA)
o CATMath2x2Matrix
public CATMath2x2Matrix( const double iA11,
const double iA22)
Constructs a diagonal CATMath2x2Matrix.
Returns:
Matrix= iA11 0
0 iA22
o CATMath2x2Matrix
public CATMath2x2Matrix( const double iA11,
const double iA12,
const double iA21,
const double iA22)
Constructs a CATMath2x2Matrix from its coefficients.
Returns:

Matrix= iA11 iA12
iA21 iA22

Methods


o Determinant
public double Determinant()const
Returns the determinant of this CATMath2x2Matrix.
o GetCoef
public void GetCoef(double& ioA11,
double& ioA12,
double& ioA21,
double& ioA22)
Retrieves the coefficients of this CATMath2x2Matrix.
Matrix= ioA11 ioA12
ioA21 ioA22
o GetFirstColumn
public CATMathVector2D GetFirstColumn()const
Retrieves the first column of this CATMath2x2Matrix. The signature which returns a CATMathVector2D output argument should be preferably used.
o GetFirstColumn
public void GetFirstColumn(CATMathVector2D& ioFirstColumn) const
Retrieves the first column of this CATMath2x2Matrix.
o GetSecondColumn
public CATMathVector2D GetSecondColumn()const
Retrieves the second column of this CATMath2x2Matrix. The signature which returns a CATMathVector2D output argument should be preferably used.
o GetSecondColumn
public void GetSecondColumn(CATMathVector2D& ioSecondColumn) const
Retrieves the second column of this CATMath2x2Matrix.
o Inverse
public CATBoolean Inverse(CATMath2x2Matrix& ioInverse) const
Inverses this CATMath2x2Matrix.
Returns:
TRUE if this CATMath3x3Matrix is invertible, FALSE otherwise. In this last case, ioInverse is not modified.
o IsDirect
public CATBoolean IsDirect()const
Tests whether this CATMath2x2Matrix is direct.
Returns:
TRUE
if it is direct.
FALSE
if it is indirect.
o IsIsometry
public CATBoolean IsIsometry()const
Tests whether this CATMath2x2Matrix is an isometry.
Returns:
FALSE
if it is not an isometry.
TRUE
if it is a direct isometry.
o IsScaling
public CATBoolean IsScaling()const
Tests whether this CATMath2x2Matrix is a scaling.
Returns:
FALSE
if it is not a scaling.
TRUE
if it is a direct scaling.
o SetCoef
public void SetCoef( const double ioA11,
const double ioA12,
const double ioA21,
const double ioA22)
Sets the coefficients of this CATMath2x2Matrix.
Matrix= iA11 iA12
iA21 iA22
o SetFirstColumn
public void SetFirstColumn( const CATMathVector2D& iFirstColumn)
Modifies the first column of this CATMath2x2Matrix.
o SetMatrix
public void SetMatrix( const CATMathVector2D& iFirstColumn,
const CATMathVector2D& iSecondColumn)
Modifies the columns of this CATMath2x2Matrix.
o SetSecondColumn
public void SetSecondColumn( const CATMathVector2D& iSecondColumn)
Modifies the second column of this CATMath2x2Matrix.
o Trace
public double Trace()const
Returns the trace of this CATMath2x2Matrix.
o Transpose
public void Transpose(CATMath2x2Matrix& ioTransposed) const
Transposes this CATMath2x2Matrix.

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

Copyright © 2003, Dassault Systèmes. All rights reserved.