@kognifai/cogsengine
    Preparing search index...

    Function decompose

    • Decomposes a transformation matrix into its rotation, translation and scale components. Returns only the rotation component

      Parameters

      • out_r: quat

        Quaternion to receive the rotation component

      • out_t: vec3

        Vector to receive the translation vector

      • out_s: vec3

        Vector to receive the scaling factor

      • mat: ReadonlyMat4

        Matrix to be decomposed (input)

      Returns quat

      out_r