pan>
      <span class="sr-only">Link to this function</span>
    </a>
    <h1 class="signature">component(arg, atom)</span>
        
      <div class="specs">
          <pre>component(<a href="#t:vector/0">vector</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">atom</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">number</a>()</pre>
      </div>
  </div>
  <section class="docstring">
<p>Returns the scalar component for the axis given</p>
<h2 id="component/2-e