Share

AcGeMatrix2d

Class Hierarchy

AcGeMatrix2d

C++

class AcGeMatrix2d;

File

gemat2d.h

Description

Class AcGeMatrix2d represents an affine transformation of 3D space, including translation. Each matrix M has the form:

a00 a01 t0
a10 a11 t1

where the matrix A:

a00 a01
a10 a11

is called the linear part of M.

Column T:

t0
t1

is called a translational part of M.

To get AcGePoint2dpnt transformed by corresponding transformation, one has to take the product M x P of the matrix M and point-column P = ( pnt.x, pnt.y, 1.0) to the power of T. To get AcGeVector2dvec transformed by corresponding transformation, one has to take the product M x V of the matrix M and vector-column V = ( vec.x, vec.y, 0.0) to the power of T.

Every matrix M is associated with a coordinate system. This coordinate system has the origin (t0, t1) and vectors (a00, a10) and (a01, a11) as axes. Matrix M maps the standard coordinate system to the coordinate system with the origin (0, 0) and axes (1, 0) and (0, 1).

Remarks

AcGeMatrix3d can be viewed as a structure consisting of array [3][3].

Links

AcGeMatrix2d Constructor, AcGeMatrix2d Data Members, AcGeMatrix2d Methods, AcGeMatrix2d Operators

See Also

AcGeMatrix3d, AcGeTol

Was this information helpful?