Function fromMat4

  • Creates a Mat3 from the upper left 3x3 part of a Mat4

    Parameters

    • m4: Mat4

      source matrix

    • Optional dst: Mat3

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

    Returns Mat3

    Mat3 made from m4