[Y-devel] Re: Measuring lengths (pixels or something else?)

Rupert Mazzucco maz at ap.univie.ac.at
Fri Feb 27 18:05:45 GMT 2004


On Fri, 27 Feb 2004, Maurice van der Pot wrote:

> > As for the origin and length, I think it doesn't
> > matter where the origin is, but I think that we should use
> > mathematical coordinates like OpenGL does: positive numbers to
> > towards right and top, just like in any math book.
>
> Programmers aren't mathematicians. Most screen coordinate systems
> use an origin at the top left and positive Y towards the bottom.
> The only valid argument for choosing the properties of the coordinate
> system is how easy it is for people to work with it.

The PostScript/PDF model has the origin in the lower left, now
I learn that OpenGL does, too.  So it's not like programmers never
heard of that system; and they likely had some maths in school.

How does cairo do it?  Conversion from a left-handed to a right-
handed system can come back to bite you.  The toolkit should confront
the application programmer with only one system, and it would be
best to have only one in the core, too.

Regards,
Rupert




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved