Share

AcGeMatrix3d

Class Hierarchy

AcGeMatrix3d
    AcAxMatrix3d

C++

class AcGeMatrix3d;

File

gemat3d.h

Description

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

a00 a01 a02 t0
a10 a11 a12 t1
a20 a21 a22 t2

where the matrix A:

a00 a01 a02
a10 a11 a12
a20 a21 a22

is called the linear part of M.

Column T:

t0
t1
t2

is called a translational part of M.

To get AcGePoint3dpnt 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, pnt.z, 1.0 ) to the power of T . To get AcGeVector3dvec 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, vec.z, 0.0) to the power of T.

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

Remarks

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

Links

AcGeMatrix3d Constructor, AcGeMatrix3d Data Members, AcGeMatrix3d Methods, AcGeMatrix3d Operators

See Also

AcGeMatrix2d, AcGeTol

Was this information helpful?