Gimp.Vector2.new

function new(x: Number(gdouble), y: Number(gdouble)): Gimp.Vector2 {
    // Gjs wrapper for gimp_vector2_new()
}
  

Creates a [struct@Vector2] of coordinates x and y.

x

the X coordinate.

y

the Y coordinate.

Returns

the resulting vector