Function translation

  • Creates a 3-by-3 matrix which translates by the given vector v.

    Parameters

    • v: Vec2

      The vector by which to translate.

    • Optional dst: Mat3

      matrix to hold result. If not passed a new one is created.

    Returns Mat3

    The translation matrix.