 is given.
Use <code class="inline">unit_safe</code> if there is a chance that a zero-magnitude vector
will be sent.</p>
<h2 id="unit/1-examples" class="section-heading">
  <a href="#unit/1-examples" class="hover-link"><span class="icon-link" aria-hidden="true"></span></a>
  Examples
</h2>

<pre><code class="nohighlight makeup elixir"><span class="gp unselectable">iex&gt; </span><span class="nc">Vector</span><span class="o">.</span><span class="n">unit</span><span class="p" data-group-id="1596178733-1">(</s