On 2/2/07, Beau Hartshorne <[EMAIL PROTECTED]> wrote: > > On 2-Feb-07, at 11:15 AM, Arnar Birgisson wrote: > > > I think we might be talking about slightly different things. You mean > > box to keep top, left, width/right and height/bottom - right? > > > > I'm proposing making a general "vector" datastructure and use that to > > represent both locations and dimensions. > > Well, a vector is something that has a "a quantity having direction > as well as magnitude." Anyway, let's not worry about the name. Let's > discuss it once you've got an implementation ready.
Some good ideas for how to deal with points, sizes, rectangles, etc. are in Apple's AppKit (and CoreGraphics) APIs. They have an NSRect consisting of a NSSize and an NSPoint, which are different structures (though they happen to both be two floats). -bob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
