wgpu-matrix
    Preparing search index...

    Variable rotateX

    rotateX: <T extends BaseArgType = Float64Array<ArrayBufferLike>>(
        q: BaseArgType,
        angleInRadians: number,
        dst?: T,
    ) => T

    Type declaration

      • <T extends BaseArgType = Float64Array<ArrayBufferLike>>(
            q: BaseArgType,
            angleInRadians: number,
            dst?: T,
        ): T
      • Rotates the given quaternion around the X axis by the given angle.

        Type Parameters

        Parameters

        • q: BaseArgType

          quaternion to rotate

        • angleInRadians: number

          The angle by which to rotate

        • Optionaldst: T

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

        Returns T

        A quaternion that is the result of a * b