I have a path stored as points in an arraylist and I want to check if the line segments are intersecting. For some unknown reason it\'s not working! I don\'t get any message in
You are using int for coordinates and so it does integer division (i.e., 3/2 = 1). This might be the reason when you are dividing by denom. You can fix it by dividing by ((double)denom) instead of simply denom.