wgpu-matrix
    Preparing search index...

    Variable rotateZ

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

    Type declaration

      • <T extends BaseArgType = Float32Array<ArrayBufferLike>>(
            q: BaseArgType,
            angleInRadians: number,
            dst?: T,
        ): T
      • Rotates the given quaternion around the Z 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