lookupLinearTransformations static method

Matrix3 lookupLinearTransformations(
  1. Matrix4 matrix
)

retrieves the first 3x3 linear transformations

consists of:

  1. local scaling
  2. shear
  3. rotation
  4. reflection

Implementation

static Matrix3 lookupLinearTransformations(Matrix4 matrix) => Matrix3(
      matrix[0], matrix[1], matrix[2], //
      matrix[4], matrix[5], matrix[6],
      matrix[8], matrix[9], matrix[10],
    );