Guest User

Untitled

a guest
Mar 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. points_on_line = []
  2. for idx, point in enumerate(segment):
  3. result = is_on_line(
  4. endpoint_1_x=segment[0].x,
  5. endpoint_1_y=segment[0].y,
  6. endpoint_2_x=segment[-1].x,
  7. endpoint_2_y=segment[-1].y,
  8. coord_x=point.x,
  9. coord_y=point.y,
  10. error_margin=0.1,
  11. )
  12. points_on_line.append((point, result,))
  13.  
  14. for point, on_line in points_on_line:
  15. # figure out where your curves are
Add Comment
Please, Sign In to add comment