Libraries have no job. They have no obligations. No things they should or must do. They have methods that define what they can do. So there is nothing stopping Athens from having such a feature. Hence my question. But I found the formula for this, looks like i will be learning linear algebra and geometry. Good thing I love math :D ΣÏÎ¹Ï 15 Îοε 2013 6:24 Ï.μ., ο ÏÏήÏÏÎ·Ï "Dennis Schetinin" <chaetal@gmail.com> ÎγÏαÏε:
Why do you think it's a job for Athens? Shouldn't it be in a geometry lib?
--
Best regards,
Dennis Schetinin
2013/11/15 kilon alios <kilon.alios@gmail.com>
So here we are with my first challenge. I am making Hyperion, a vector graphics editor using Athens , so far I have a nice line with several segments, I have added nice handlers to allow me to move the points (start and end of each segment) of the line around with the mouse, but now I want each time I click on a segment itself to create a new point.This way I will create more points with the mouse and bring more detail to the shape of the line / path.
In order to do that I will have to check that the line passes through a specific pixel. Or to be more correct that the place that mouse has clicked is where my path passes through. How I do that ? Can Athens do that ? Can athens tell me which pixels my path passes through ?
At first I thought to return the Athens surface as a Form but the form will give me back the colors of each pixel on a specific place, but that does not guarantee that my line / path passes through those pixels.