# Gimp.Vector3.prototype.rotate

    function rotate(alpha: Number(gdouble), beta: Number(gdouble), gamma: Number(gdouble)): void {
        // Gjs wrapper for gimp_vector3_rotate()
    }

Rotates the vector around the three axis (Z, Y, and X) by alpha, beta and gamma, respectively.

Note that the order of the rotation is very important. If you expect a vector to be rotated around X, and then around Y, you will have to call this function twice. Also, it is often wise to call this function with only one of alpha, beta and gamma non-zero.

alpha

  the angle (in radian) of rotation around the Z axis.

beta

  the angle (in radian) of rotation around the Y axis.

gamma

  the angle (in radian) of rotation around the X axis.