Coordinate order in Array2D

Christopher Oliver oliver at fritz.co.traverse.com
Wed Jan 21 06:04:02 UTC 1998


> I don't know why Array2D have this coordinate order but please note that =
> the traditional matrix notation, in which the first index is the row, =
> opposes to the also traditional (x, y) order.

Yes, but Mrow,col notation has a VERY long historical precedent.  Just
about any (if not all) math books I pull off my shelf will number the
row first.  Reversing these arbitrarily is an invitation to make bugs
rather than progress.

As far as screen coordinates go, I think one always will need some sort
of linear transform to get the picture where one wants.  How does one
know even that the pixels are square?  Matrix coordinate ordering though
is not an unreasonable expectation?

I guess this is a long winded way of asking if it's a big deal to
bring coordinate ordering in Squeak into conformance with conventional
matrix notation.    A search through the 1.23 image tells me that
at least there, there's nothing using it save for the shrinks which
trash it.  I don't know if there is heavy use in the new image.  Would
anyone out there get hurt by such a change?

-- 
Christopher Oliver                     Traverse Communications
Systems Coordinator                    223 Grandview Pkwy, Suite 108
oliver at traverse.com                    Traverse City, Michigan, 49684
  (lambda (r) ((lambda (f) (r (lambda (x) ((f f) x))))
               (lambda (f) (r (lambda (x) ((f f) x))))))   Y ask Y?





More information about the Squeak-dev mailing list