Function getTranslation

  • Returns the translation component of a 3-by-3 matrix as a vector with 3 entries.

    Parameters

    • m: Mat3

      The matrix.

    • Optional dst: Vec2

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

    Returns Vec2

    The translation component of m.