e"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <h1 class="signature">unit(v)</span>
        
      <div class="specs">
          <pre>unit(<a href="#t:vector/0">vector</a>()) :: <a href="#t:vector/0">vector</a>()</pre>
      </div>
  </div>
  <section class="docstring">
<p>Returns the unit vector parallel ot the given vector.
This will raise an <a href="https://hexdocs.pm/elixir/ArithmeticError.html"><code class="inline">ArithmeticError</code></a> if a zero-magnitude vector