originate


Description:

public void originate (double x, double y)

Shift the origin of the transformation specified by this to (x, y).

In other words, calculate the matrix that:

  1. Translates the input by (-x, -y).
  2. Transforms the result using the original this.
  3. Translates the result by (x, y).

Parameters:

this

a Matrix3

x

x coordinate of new origin

y

y coordinate of new origin.