java - Trouble with intersection between line segments -
i have path stored points in arraylist , want check if line segments intersecting. unknown reason it's not working! don't message in logcat despite i'm drawing shape intersects. preciate if see have done wrong or have suggestions how improve code. // intersection control if(touchactionup) { // loop throw points except last 3 (int = 0; < points.size()-3; i++) { line line1 = new line(points.get(i), points.get(i+1)); // begin after line above , check points after (int j = + 2; j < points.size()-1; j++) { line line2 = new line(points.get(j), points.get(j+1)); // call method check intersection if(checkintersection(line1, line2)) { log.i("intersection", "yes!"); } } } } and method: // method check intersection between lines private boolean interceptioncontrol(line line1, l...