I have 2 polylines in my arcgis java code, I want to find intersection points of these 2 lines, but I can not:
<SPAN class="typ" style="color: #2b91af;">Polyline</SPAN><SPAN class="pln" style="color: #2e3133;"> intersection </SPAN><SPAN class="pun" style="color: #2e3133;">=</SPAN><SPAN class="pln" style="color: #2e3133;"> </SPAN><SPAN class="pun" style="color: #2e3133;">(</SPAN><SPAN class="typ" style="color: #2b91af;">Polyline</SPAN><SPAN class="pun" style="color: #2e3133;">)</SPAN><SPAN class="typ" style="color: #2b91af;">GeometryEngine</SPAN><SPAN class="pun" style="color: #2e3133;">.</SPAN><SPAN class="pln" style="color: #2e3133;">intersect</SPAN><SPAN class="pun" style="color: #2e3133;">(</SPAN><SPAN class="pln" style="color: #2e3133;">polyline</SPAN><SPAN class="pun" style="color: #2e3133;">,</SPAN><SPAN class="pln" style="color: #2e3133;"> polyline2</SPAN><SPAN class="pun" style="color: #2e3133;">,</SPAN><SPAN class="pln" style="color: #2e3133;"> srMap</SPAN><SPAN class="pun" style="color: #2e3133;">);</SPAN><SPAN class="pln" style="color: #2e3133;"> </SPAN>
<SPAN class="typ" style="color: #2b91af;">System</SPAN><SPAN class="pun" style="color: #2e3133;">.</SPAN><SPAN class="pln" style="color: #2e3133;">out</SPAN><SPAN class="pun" style="color: #2e3133;">.</SPAN><SPAN class="pln" style="color: #2e3133;">println</SPAN><SPAN class="pun" style="color: #2e3133;">(</SPAN><SPAN class="pln" style="color: #2e3133;">intersection</SPAN><SPAN class="pun" style="color: #2e3133;">.</SPAN><SPAN class="pln" style="color: #2e3133;">getPointCount</SPAN><SPAN class="pun" style="color: #2e3133;">());</SPAN>
<SPAN class="pln" style="color: #2e3133;"></SPAN><SPAN class="typ" style="color: #2b91af;">System</SPAN><SPAN class="pun" style="color: #2e3133;">.</SPAN><SPAN class="pln" style="color: #2e3133;">out</SPAN><SPAN class="pun" style="color: #2e3133;">.</SPAN><SPAN class="pln" style="color: #2e3133;">println</SPAN><SPAN class="pun" style="color: #2e3133;">(</SPAN><SPAN class="typ" style="color: #2b91af;">GeometryEngine</SPAN><SPAN class="pun" style="color: #2e3133;">.</SPAN><SPAN class="pln" style="color: #2e3133;">intersects</SPAN><SPAN class="pun" style="color: #2e3133;">(</SPAN><SPAN class="pln" style="color: #2e3133;">polyline</SPAN><SPAN class="pun" style="color: #2e3133;">,</SPAN><SPAN class="pln" style="color: #2e3133;"> polyline2</SPAN><SPAN class="pun" style="color: #2e3133;">,</SPAN><SPAN class="pln" style="color: #2e3133;"> srMap</SPAN><SPAN class="pun" style="color: #2e3133;">));</SPAN>
First print line returns 0 but the second print line returns true. How I can get thouse intersection points in arcgis?