TransformationMatrixCreateTranslation(Single, Single) Method
Creates a translation matrix from the specified offsets.
Namespace: KGySoft.Drawing.ShapesAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
public static TransformationMatrix CreateTranslation(
float x,
float y
)
Public Shared Function CreateTranslation (
x As Single,
y As Single
) As TransformationMatrix
public:
static TransformationMatrix CreateTranslation(
float x,
float y
)
static member CreateTranslation :
x : float32 *
y : float32 -> TransformationMatrix
- x Single
- The distance to translate along the X axis.
- y Single
- The distance to translate along the Y axis.
TransformationMatrixThe translation matrix.