is mouse on line?

Blitz3D Forums/Blitz3D Beginners Area/is mouse on line?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Clever. I'll have to benchmark to see which method is faster. Since I'll be doing this check hundreds of times in a loop every frame it's probably speed critical.

ADDITION: Actually, the distance way works better because it has an easily controlled threshold value (line_thickness.) With the slopes method I was needing to click exactly on the line. I thought of a way to do a threshold but that would have been a pain and probably pretty slow.