Hide menu
Loading...
Searching...
No Matches

Defines a 2D transformation matrix. More...

Inherits global.SystemIDisposable.

Public Member Functions

 Transformation2d (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 Transformation2d ()
 Constructor.
 
 Transformation2d (cadex.Geom.Transformation2d theTrsf)
 Constructor.
 
 Transformation2d (cadex.Geom.Matrix2d theMatrix, cadex.Geom.Vector2d theTranslation, double theScale)
 
 Transformation2d (cadex.Geom.Matrix2d theMatrix, cadex.Geom.Vector2d theTranslation)
 
 Transformation2d (cadex.Geom.Vector2d theTranslation)
 
 Transformation2d (cadex.Geom.Point2d theP, double theAng)
 
 Transformation2d (cadex.Geom.Point2d theP, double theAng, cadex.Geom.Vector2d theTranslation)
 
bool IsIdentity ()
 
void ResetToIdentity ()
 
double ScaleFactor ()
 
void SetScaleFactor (double theScale)
 Sets a scale factor.
 
double RotationAngle ()
 
cadex.Geom.Matrix2d Rotation ()
 
void SetRotation (cadex.Geom.Matrix2d theMatrix)
 
void SetRotation (cadex.Geom.Point2d theP, double theAng)
 
cadex.Geom.Vector2d Translation ()
 
void SetTranslation (cadex.Geom.Point2d theP1, cadex.Geom.Point2d theP2)
 
void SetTranslation (cadex.Geom.Vector2d theV)
 
bool IsNegative ()
 
void Invert ()
 Inverts the matrix.
 
cadex.Geom.Transformation2d Inverted ()
 
void Multiply (cadex.Geom.Transformation2d theTrsf)
 Multiplies this matrix with another one.
 
cadex.Geom.Transformation2d Multiplied (cadex.Geom.Transformation2d theTrsf)
 
void Power (int theNum)
 
cadex.Geom.Transformation2d Powered (int theNum)
 
bool IsEqual (cadex.Geom.Transformation2d theOther)
 

Static Public Member Functions

static cadex.Geom.Transformation2d MirrorTransformation (cadex.Geom.Point2d thePoint)
 
static cadex.Geom.Transformation2d MirrorTransformation (cadex.Geom.Axis2d theAxis)
 
static cadex.Geom.Transformation2d ScaleTransformation (cadex.Geom.Point2d thePoint, double theScale)
 
static cadex.Geom.Transformation2d RotateTransformation (cadex.Geom.Point2d theVec, double theAngle)
 
static cadex.Geom.Transformation2d TranslateTransformation (cadex.Geom.Vector2d theVector)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Defines a 2D transformation matrix.

Contains rotation and translation part and a scale factor. A rotation part (2 x 2 matrix) must not contain a scale factor or inversion, i.e. its matrix determinant must be equal to 1.

Individual matrix elements can retrieved using the Data() method.

Constructor & Destructor Documentation

◆ Transformation2d()

cadex.Geom.Transformation2d.Transformation2d ( )
inline

Constructor.

Creates an identity matrix.

Member Function Documentation

◆ Invert()

void cadex.Geom.Transformation2d.Invert ( )
inline

Inverts the matrix.

Makes this matrix an inverse, i.e. A * A^(-1) = I.

◆ SetScaleFactor()

void cadex.Geom.Transformation2d.SetScaleFactor ( double theScale)
inline

Sets a scale factor.

See also
ScaleFactor().