Function getTranslation

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

    Parameters

    • m: Mat4

      The matrix.

    • Optional dst: Vec3

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

    Returns Vec3

    The translation component of m.