Aspose::Font::TransformationMatrix class
Contents
[
Hide
]TransformationMatrix class
Represents 3x3 transformation matrix | A B 0 | | C D 0 | | TX TY 1 |.
class TransformationMatrix : public System::ICloneable
Methods
| Method | Description | 
|---|---|
| get_A() const | Gets A transformation matrix value. | 
| get_B() const | Gets B transformation matrix value. | 
| get_C() const | Gets C transformation matrix value. | 
| get_D() const | Gets D transformation matrix value. | 
| get_TX() const | Gets TX transformation matrix value. | 
| get_TY() const | Gets TY transformation matrix value. | 
| idx_get(int32_t) | Provides access to underlying array. | 
| Multiply(const System::SharedPtr<TransformationMatrix>&) | Multiplies with another transformation matrix. Doesn’t change original transformation matrix, returns a new TransformationMatrix object. | 
| Scale(double, double, double&, double&) | Scales x and y with the transformation matrix: x1 = Ax + Cy; y1 = Bx + Dy. | 
| set_A(double) | Sets A transformation matrix value. | 
| set_B(double) | Sets B transformation matrix value. | 
| set_C(double) | Sets C transformation matrix value. | 
| set_D(double) | Sets D transformation matrix value. | 
| set_TX(double) | Sets TX transformation matrix value. | 
| set_TY(double) | Sets TY transformation matrix value. | 
| ToArray() | Allocates new array, copies the transformation matrix and returns it. | 
| Transform(double, double, double&, double&) | Transforms x and y with the transformation matrix: x1 = Ax + Cy + TX; y1 = Bx + Dy + TY. | 
| TransformationMatrix() | Creates standard 1 to 1 transformation matrix: [ A B C D TX TY ] = [ 1, 0, 0, 1, 0, 0]. | 
| TransformationMatrix(const System::ArrayPtr<double>&) | Accepts a transformation matrix with following array representation: [ A B C D TX TY ]. | 
| TransformationMatrix(double, double, double, double, double, double) | Creates transformation matrix [ A B C D TX TY ]. | 
| UnScale(double, double, double&, double&) | Scales back x1 and y1 and returns x and y before the transformation matrix. | 
| UnTransform(double, double, double&, double&) | Transforms back x1 and y1 and returns x and y before the transformation matrix. | 
Remarks
Transforms coordinates in the following way: x1 = Ax + Cy + TX; y1 = Bx + Dy + TY.
See Also
- Class ICloneable
 - Namespace Aspose::Font
 - Library Aspose.Font for C++