[Tutor] How to count vehicle? I'm trying but my code don't increasing..

Emile van Sebille emile at fenx.com
Wed Sep 3 16:28:49 CEST 2014


On 9/2/2014 7:01 AM, Whees Northbee wrote:
> If all of these confusing, I'll simplify the problem, I need to know if a point (x,y) exactly at a line where line is (ax1,ay) to (ax2,ay)..
>
> Can someone tell me how??

if ax1<x<ax2 and ay1<ay<ay2 and (ay2-ay1)/(ax2-ax1)==(ay2-ay)/(ax2-x2)

I think that does it.

Emile







More information about the Tutor mailing list