Gimp.Vector2.prototype.rotate_val

function rotate_val(alpha: Number(gdouble)): Gimp.Vector2 {
    // Gjs wrapper for gimp_vector2_rotate_val()
}
  

Identical to [method@Vector2.rotate], but the vector is passed by value rather than by reference.

alpha

an angle (in radians).

Returns

a Gimp.Vector2 representing vector rotated by alpha radians.