[Tutor] Questions of Maths

Abu Ismail abdulhafid at gmail.com
Wed Apr 18 14:30:18 CEST 2007


I am working on an implementation of an L-system in Python. I hate
using turtle module since it uses Tk and as my IDE also uses Tk I have
to close my editor before I can test the program. So I am implementing
the graphics using PIL.

Now to the problem.

Say you have a line AB with co-ords (x1,y1) and (x2,y2). Say you also
have a point C with co-ords (x3,y3).

Question: how to determine whether point C is to the left or to the
right of the line AB?

Any suggestions would be welcome.


More information about the Tutor mailing list