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

Defines a transformation matrix. More...

Inherits global.SystemIDisposable.

Public Member Functions

 Transformation (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 Transformation ()
 Constructor.
 
 Transformation (cadex.Geom.Transformation theTrsf)
 Constructor.
 
 Transformation (cadex.Geom.Matrix3d theRotation, cadex.Geom.Vector theTranslation, double theScale)
 
 Transformation (cadex.Geom.Matrix3d theRotation, cadex.Geom.Vector theTranslation)
 
 Transformation (cadex.Geom.Axis3d theAxis)
 
 Transformation (cadex.Geom.Axis3d theSource, cadex.Geom.Axis3d theTarget)
 
 Transformation (cadex.Geom.Vector theTranslation)
 
 Transformation (cadex.Geom.Vector theAxis, double theAngle, double theAngularPrecision)
 
 Transformation (cadex.Geom.Vector theAxis, double theAngle)
 
 Transformation (cadex.Geom.Axis1d theAxis, double theAngle, double theAngularPrecision)
 
 Transformation (cadex.Geom.Axis1d theAxis, double theAngle)
 
 Transformation (cadex.Geom.Axis1d theAxis, double theAngle, cadex.Geom.Vector theTranslation, double theAngularPrecision)
 Constructor.
 
 Transformation (cadex.Geom.Axis1d theAxis, double theAngle, cadex.Geom.Vector theTranslation)
 
bool IsIdentity ()
 
void ResetToIdentity ()
 
double ScaleFactor ()
 Returns a scale factor.
 
void SetScaleFactor (double theScale)
 Sets a scale factor.
 
cadex.Geom.Vector Translation ()
 
void SetTranslation (cadex.Geom.Vector theVector)
 
void SetTranslation (cadex.Geom.Point thePoint1, cadex.Geom.Point thePoint2)
 
cadex.Geom.Matrix3d Rotation ()
 
void SetRotation (cadex.Geom.Matrix3d theMatrix)
 
void SetRotation (cadex.Geom.Axis1d theAxis, double theAngle)
 
void SetRotation (cadex.Geom.Vector theVec, double theAngle)
 
bool IsNegative ()
 
void Invert ()
 
cadex.Geom.Transformation Inverted ()
 
void Multiply (cadex.Geom.Transformation theTrsf)
 Multiplies this matrix with another one.
 
cadex.Geom.Transformation Multiplied (cadex.Geom.Transformation theTrsf)
 
void Power (int theNum)
 
cadex.Geom.Transformation Powered (int theNum)
 
bool IsEqual (cadex.Geom.Transformation theOther)
 

Static Public Member Functions

static cadex.Geom.Transformation MirrorTransformation (cadex.Geom.Point thePoint)
 
static cadex.Geom.Transformation MirrorTransformation (cadex.Geom.Axis1d theAxis)
 
static cadex.Geom.Transformation MirrorTransformation (cadex.Geom.Axis3d theAxis)
 
static cadex.Geom.Transformation ScaleTransformation (cadex.Geom.Point thePoint, double theScale)
 
static cadex.Geom.Transformation RotateTransformation (cadex.Geom.Vector theVec, double theAngle)
 
static cadex.Geom.Transformation RotateTransformation (cadex.Geom.Axis1d theAxis, double theAngle)
 
static cadex.Geom.Transformation TranslateTransformation (cadex.Geom.Vector theVector)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Defines a transformation matrix.

Contains rotation and translation part and a scale factor. A rotation part (3 x 3 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

◆ Transformation() [1/2]

cadex.Geom.Transformation.Transformation ( )
inline

Constructor.

Creates an identity matrix.

◆ Transformation() [2/2]

cadex.Geom.Transformation.Transformation ( cadex.Geom.Axis1d theAxis,
double theAngle,
cadex.Geom.Vector theTranslation,
double theAngularPrecision )
inline

Constructor.

Creates a transformation matrix from rotation and translation components. If theAngle (in radians) is less than theAngularPrecision then the rotation component is ignored.

Member Function Documentation

◆ ScaleFactor()

double cadex.Geom.Transformation.ScaleFactor ( )
inline

Returns a scale factor.

By default, a scale factor is 1.

See also
SetScaleFactor().

◆ SetScaleFactor()

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

Sets a scale factor.

See also
ScaleFactor().