Gimp.Vector3.rotate
@accepts(Gimp.Vector3, float, float, float)
@returns(none)
def rotate(self, alpha, beta, gamma):
# Python wrapper for gimp_vector3_rotate()
Rotates the self 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.
- self
a pointer to a Gimp.Vector3.
- 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.