Matrix.UnTransform

Matrix.UnTransform method

Transforms back x1 and y1 and returns x and y before the matrix transformation using the following formula: x = (D * x1 - C * y1 + C * F) / (A * D - C * B) y = (A * y1 - B * x1 + B * E) / (A * D - C * B).

public void UnTransform(double x1, double y1, out double x, out double y)
ParameterTypeDescription
x1DoubleInput X coordinate
y1DoubleInput Y coordinate
xDouble&Output X coordinate
yDouble&Output Y coordinate

See Also