Function fromMat

  • Creates a quaternion from the given rotation matrix.

    The created quaternion is not normalized.

    Parameters

    • m: Float32Array | Float64Array | number[]

      rotation matrix

    • Optional dst: Quat

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

    Returns Quat

    the result