nts, <code>-1</code> if they don't intersect.</p></div></div></div><div class="field "><a name="checkSegments"></a><h3 class="anchor"><code><span class="label label-static">static</span><a href="#checkSegments"><span class="identifier">checkSegments</span></a>(<span style="white-space:nowrap">p1:<a class="type" title="h2d.col.Point - A simple 2D position/vector container." href="../../h2d/col/Point.html">Point</a>,</span> <span style="white-space:nowrap">p2:<a class="type" title="h2d.col.Point - A simple 2D