TranslatePrepend(Matrix, Double, Double) Method

Definition

Assembly PanAndZoom.dll

Prepends a translation around the center of provided matrix.

public static Matrix TranslatePrepend(Matrix matrix, double offsetX, double offsetY)

Parameters

matrix
Avalonia.Matrix

The matrix to prepend translation.

offsetX
Double

X-coordinate offset.

offsetY
Double

Y-coordinate offset.

Returns

Avalonia.Matrix
The created translation matrix.