<?xml version="1.0"?>
<page id="Gimp.Vector2.add"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.Vector2" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>void</api:type>
      </api:returns>
      <api:name>gimp_vector2_add</api:name>
      <api:arg>
        <api:type>Gimp.Vector2</api:type>
        <api:name>vector1</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gimp.Vector2</api:type>
        <api:name>vector2</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Vector2.add</title>
  <synopsis><code mime="text/x-gjs">
function add(vector1: <link xref="Gimp.Vector2">Gimp.Vector2</link>, vector2: <link xref="Gimp.Vector2">Gimp.Vector2</link>): <link xref="Gimp.Vector2">Gimp.Vector2</link> {
    // Gjs wrapper for gimp_vector2_add()
}
  </code></synopsis>
  <p>Computes the sum of two 2D vectors. The resulting <link xref="Gimp.Vector2"/> is
stored in @result.</p>

<terms>
<item>
<title><code>vector1</code></title>
  <p>a pointer to the first <link xref="Gimp.Vector2"/>.</p>
</item>
<item>
<title><code>vector2</code></title>
  <p>a pointer to the second <link xref="Gimp.Vector2"/>.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>destination for the resulting <link xref="Gimp.Vector2"/>.</p>
</item>
</terms>

</page>
