Matrix.Translate

Matrix.Translate method

Translates a matrix by the specified amount in the x and y direction.

public static Matrix Translate(double dx, double dy, Matrix source)
ParameterTypeDescription
dxDoubleThe amount to translate in the x direction.
dyDoubleThe amount to translate in the y direction.
sourceMatrixThe matrix to translate.

Return Value

A new matrix that is the result of the translation.

See Also