wgpu-matrix
    Preparing search index...

    Variable fromMat

    fromMat: <T extends BaseArgType = number[]>(m: BaseArgType, dst?: T) => T

    Type declaration

      • <T extends BaseArgType = number[]>(m: BaseArgType, dst?: T): T
      • Creates a quaternion from the given rotation matrix.

        The created quaternion is not normalized.

        Type Parameters

        Parameters

        • m: BaseArgType

          rotation matrix

        • Optionaldst: T

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

        Returns T

        the result