Matrix3x2d.setTranslation

Set only the translation components of this matrix <code>(m20, m21)</code> to the given values <code>(x, y)</code>. <p> To build a translation matrix instead, use {@link #translation(double, double)}. To apply a translation to another matrix, use {@link #translate(double, double)}.

@see #translation(double, double) @see #translate(double, double)

@param x the offset to translate in x @param y the offset to translate in y @return this

  1. Matrix3x2d setTranslation(double x, double y)
    struct Matrix3x2d
    ref return
    setTranslation
    (
    double x
    ,
    double y
    )
  2. Matrix3x2d setTranslation(Vector2d offset)

Meta