Matrix.Translate

Translate(float, float)

Applies the specified translation vector (offsetX and offsetY) to this Matrix by prepending the translation vector.

public void Translate(float offsetX, float offsetY)
ParameterTypeDescription
offsetXSingleThe x value by which to translate this Matrix.
offsetYSingleThe y value by which to translate this Matrix.

See Also


Translate(float, float, MatrixOrder)

Applies the specified translation vector to this Matrix in the specified order.

public void Translate(float offsetX, float offsetY, MatrixOrder order)
ParameterTypeDescription
offsetXSingleThe x value by which to translate this Matrix.
offsetYSingleThe y value by which to translate this Matrix.
orderMatrixOrderA MatrixOrder that specifies the order (append or prepend) in which the translation is applied to this Matrix.

See Also