/ help / lists / applications / search /
|molar.is > lists > imager-devel > 2001-02||/ threads / authors / dates / subjects /|
anti-alias, fractional coordinatesFrom: Arnar Mar Hrafnkelsson (firstname.lastname@example.org)
Date: Sat 24 Feb 2001 - 07:10:15 UTC
There is a little design thing that needs to be sorted out. That is the
The most simple form of this question is:
Should the line (10,10) -> (20,20) include the (20,20) point itself?
If not then drawing (20,20) -> (10,10) is not the same as doing it in the
The same things extends to the case where you want to draw a box
should the perimeter be include? some which?
This however is only one half of the story the other comes in when you
In that case the line from (0.0, 0.0) to (5.0, 5.0) only covers
It's also consistent when you draw the other way from (5.0, 5.0) to
But it's not really intuitive.
Consider drawing from (2.0, 0.0) to (0.0, 2.0) It will go from the lower
It would also mean that a box with edges would always have soft edges.
How does one deal with endpoints in non antialized mode?
This is what is going on inside my head right now. I'd like to hear your