s="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="identifier">i</span> <span class="special">!=</span> <span class="identifier">n_points</span><span class="special">;</span> <span class="special">++</span><span class="identifier">i</span><span class="special">)</span>
  <span class="special">{</span>
</pre>
<p>
      </p>
<p>
        Using formula from J. Rovira et al., "Point sampling with uniformly
        distributed lines", 2005 to compute uniformly distribute