wgpu-matrix
    Preparing search index...

    Variable rotateY

    rotateY: <T extends BaseArgType = number[]>(
        a: BaseArgType,
        b: BaseArgType,
        rad: number,
        dst?: T,
    ) => T

    Type declaration

      • <T extends BaseArgType = number[]>(
            a: BaseArgType,
            b: BaseArgType,
            rad: number,
            dst?: T,
        ): T
      • Rotate a 3D vector around the y-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