iv class="line">    quat[1] = uniform_dist.Get() * 2.0 - 1.0;</div>
<div class="line">    quat[2] = uniform_dist.Get() * 2.0 - 1.0;</div>
<div class="line">    quat[3] = uniform_dist.Get() * 2.0 - 1.0;</div>
<div class="line">    Math::Quaternion::Normalize(&amp;quat);</div>
<div class="line"> </div>
<div class="line">    <span class="comment">// random position</span></div>
<div class="line">    <span class="keywordtype">int</span> id_facet = floor(uniform_dist.Get() * facets.size());</div>
<div class="lin