Mathematics 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(double,double)
Constructs a diagonal CATMath2x2Matrix.
o CATMath2x2Matrix(CATMathVector2D&)
Constructs a reflection around a direction.
o CATMath2x2Matrix(CATMath2x2Matrix&)
Copy constructor.
o CATMath2x2Matrix(double,CATMathTransfoType)
Constructs a CATMath2x2Matrix from a scalar.
o CATMath2x2Matrix(double,double,double,double)
Constructs a CATMath2x2Matrix from its coefficients.
o CATMath2x2Matrix(CATMathVector2D&,CATMathVector2D&,short)
Constructs a CATMath2x2Matrix from two colums.

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 iA11,
const iA22)
Constructs a diagonal CATMath2x2Matrix.
Returns:
Matrix= iA11 0
0 iA22
o CATMath2x2Matrix
public CATMath2x2Matrix( const iReflectDirection)
Constructs a reflection around a direction.
o CATMath2x2Matrix
public CATMath2x2Matrix( const iMatrixToCopy)
Copy constructor.
o CATMath2x2Matrix
public CATMath2x2Matrix( const iA,
const 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 iA11,
const iA12,
const iA21,
const iA22)
Constructs a CATMath2x2Matrix from its coefficients.
Returns:

Matrix= iA11 iA12
iA21 iA22
o CATMath2x2Matrix
public CATMath2x2Matrix( const iV1,
const iV2,
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.

Methods


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

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

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