MatrixFromTranslation Method (Single, Single) |
Creates a new matrix with a translation
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static IMatrix FromTranslation(
float distanceX,
float distanceY
)
Public Shared Function FromTranslation (
distanceX As Single,
distanceY As Single
) As IMatrix
static member FromTranslation :
distanceX : float32 *
distanceY : float32 -> IMatrix
Parameters
- distanceX
- Type: SystemSingle
Distance to translate along the x axis - distanceY
- Type: SystemSingle
Distance to translate along the y axis
Return Value
Type:
IMatrixA new translation matrix
See Also