Class TranslateTransformCommand
Translates the world transform by the specified offsets.
Inherited Members
Namespace: DRIT.Drawing.Vector.Commands
Assembly: DRIT.Drawing.dll
Syntax
public sealed class TranslateTransformCommand : DrawingCommand
Constructors
TranslateTransformCommand(float, float, MatrixOrder)
Initializes a new TranslateTransformCommand.
Declaration
public TranslateTransformCommand(float dx, float dy, MatrixOrder order)
Parameters
| Type | Name | Description |
|---|---|---|
| float | dx | |
| float | dy | |
| MatrixOrder | order |
Properties
Dx
Gets the horizontal translation.
Declaration
public float Dx { get; }
Property Value
| Type | Description |
|---|---|
| float |
Dy
Gets the vertical translation.
Declaration
public float Dy { get; }
Property Value
| Type | Description |
|---|---|
| float |
Order
Gets the multiplication order.
Declaration
public MatrixOrder Order { get; }
Property Value
| Type | Description |
|---|---|
| MatrixOrder |
Methods
Clone()
Creates a deep copy of this command.
Declaration
public override DrawingCommand Clone()
Returns
| Type | Description |
|---|---|
| DrawingCommand | A new DrawingCommand with the same state. |