Author: Not specified | Language: python |
Description: Not specified | Timestamp: 2018-04-12 11:44:31 +0000 |
View raw paste | Reply |
- def which_side(a, b, c):
- # Returns side of point 'c' from 'a->b' road
- if ((b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x)) > 0:
- return 'left'
- else:
- return 'right'
View raw paste | Reply |