Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- points_on_line = []
- for idx, point in enumerate(segment):
- result = is_on_line(
- endpoint_1_x=segment[0].x,
- endpoint_1_y=segment[0].y,
- endpoint_2_x=segment[-1].x,
- endpoint_2_y=segment[-1].y,
- coord_x=point.x,
- coord_y=point.y,
- error_margin=0.1,
- )
- points_on_line.append((point, result,))
- for point, on_line in points_on_line:
- # figure out where your curves are
Add Comment
Please, Sign In to add comment