math docs
    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.Quat

        Quaternion to receive the rotation component

      • out_t: vec3.Vec3

        Vector to receive the translation vector

      • out_s: vec3.Vec3

        Vector to receive the scaling factor

      • mat: mat4.Mat4

        Matrix to be decomposed (input)

      Returns quat.Quat

      out_r