Matrix3x2d.translate

Apply a translation to this matrix by translating by the given number of units in x and y and store the result in <code>dest</code>. <p> If <code>M</code> is <code>this</code> matrix and <code>T</code> the translation matrix, then the new matrix will be <code>M * T</code>. So when transforming a vector <code>v</code> with the new matrix by using <code>M * T * v</code>, the translation will be applied first! <p> In order to set the matrix to a translation transformation without post-multiplying it, use {@link #translation(double, double)}.

@see #translation(double, double)

@param x the offset to translate in x @param y the offset to translate in y @param dest will hold the result @return dest

  1. Matrix3x2d translate(double x, double y, Matrix3x2d dest)
    struct Matrix3x2d
    translate
    (
    double x
    ,
    double y
    ,)
  2. Matrix3x2d translate(double x, double y)
  3. Matrix3x2d translate(Vector2d offset, Matrix3x2d dest)
  4. Matrix3x2d translate(Vector2d offset)

Meta