TransformationMatrixCreateTranslation(Single, Single) Method

Creates a translation matrix from the specified offsets.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public static TransformationMatrix CreateTranslation(
	float x,
	float y
)

Parameters

x  Single
The distance to translate along the X axis.
y  Single
The distance to translate along the Y axis.

Return Value

TransformationMatrix
The translation matrix.

See Also