wgpu-matrix
    Preparing search index...

    Variable axisRotation

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

    Type declaration

      • <T extends BaseArgType = Float32Array<ArrayBufferLike>>(
            axis: BaseArgType,
            angleInRadians: number,
            dst?: T,
        ): T
      • Creates a 4-by-4 matrix which rotates around the given axis by the given angle.

        Type Parameters

        Parameters

        • axis: BaseArgType

          The axis about which to rotate.

        • angleInRadians: number

          The angle by which to rotate (in radians).

        • Optionaldst: T

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

        Returns T

        A matrix which rotates angle radians around the axis.