Gimp.Vector2.prototype.normalize_val

function normalize_val(): Gimp.Vector2 {
    // Gjs wrapper for gimp_vector2_normalize_val()
}
  

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

Returns

a Gimp.Vector2 parallel to vector, pointing in the same direction but with a length of 1.0.