math docs
    Preparing search index...

    Function fromMat3

    • Creates a quaternion from the given 3x3 rotation matrix.

      NOTE: The resultant quaternion is not normalized, so you should be sure to renormalize the quaternion yourself where necessary.

      Parameters

      • out: quat.Quat

        the receiving quaternion

      • m: readonly [
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
            number,
        ]

        rotation matrix

      Returns quat.Quat

      out