wgpu-matrix
    Preparing search index...

    Variable rotateX

    rotateX: <T extends BaseArgType = Float64Array<ArrayBufferLike>>(
        a: BaseArgType,
        b: BaseArgType,
        rad: number,
        dst?: T,
    ) => T

    Type declaration

      • <T extends BaseArgType = Float64Array<ArrayBufferLike>>(
            a: BaseArgType,
            b: BaseArgType,
            rad: number,
            dst?: T,
        ): T
      • Rotate a 3D vector around the x-axis

        Type Parameters

        Parameters

        • a: BaseArgType

          The vec3 point to rotate

        • b: BaseArgType

          The origin of the rotation

        • rad: number

          The angle of rotation in radians

        • Optionaldst: T

          The vector to set. If not passed a new one is created.

        Returns T

        the rotated vector