<?xml version="1.0"?>
<page id="Gimp.Vector2.normalize_val"
      type="topic"
      style="method"
      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="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gimp.Vector2</api:type>
      </api:returns>
      <api:name>gimp_vector2_normalize_val</api:name>
    </api:function>
  </info>
  <title>Gimp.Vector2.prototype.normalize_val</title>
  <synopsis><code mime="text/x-gjs">
function normalize_val(): <link xref="Gimp.Vector2">Gimp.Vector2</link> {
    // Gjs wrapper for gimp_vector2_normalize_val()
}
  </code></synopsis>
  <p>Identical to [method@Vector2.normalize], but the
vector is passed by value rather than by reference.</p>

<terms>
<item>
<title><code>Returns</code></title>
  <p>a <link xref="Gimp.Vector2"/> parallel to <code>vector</code>, pointing in the same
direction but with a length of 1.0.</p>
</item>
</terms>

</page>
