Graphics question: A challenge to guru!
Hi all!
2 years ago, I've asked around and even searched on the net on how to indicate if a given point(in coordinates) belongs inside an ellipse. I've got that code if you guys want (in C++).
However, today I have one simple question, I hope it's simple enough if anyone knows, I am too busy to try out to make a formula for it. Now the question.
You draw a line using the DrawLine function which requires 2 points and of course a pen object.
Take for example i have 2 points, 1 point at coordinate (2,10) and the other point at (30, 47).
The question is how do you determine if a given point let say maybe 7,7 belongs to the line plotted/drawn by the DrawLine
function?
Archaven