Re: distanceto semantics
Adam Megacz <[email protected]> Thu, 15 Apr 2004 02:52:42 -0700
| Newsgroups | gmane.comp.java.xwt.core |
|---|---|
| Organization | XWT |
| Message-ID | <[email protected]> |
argh, this is backwards. please log a bug Charles Goodwin <[email protected]> writes: > Currently b1.distanceto(b2) gives the answer b1 - b2. > > Shouldn't that be b2 - b1? > > Ascii example: > > .-----. > |b1 | b1 origin (0, 0) > | .-----. b2 origin (50, 50) > '--|b2 | > | | > '-----' > > Currently b1.distanceto(b2) returns {x:-50, y:-50}. But wouldn't you > expect that to be (50,50)? > > To me, 'b1.distanceto(b2)' reads "the distance from b1 to b2". > Currently it returns "the distance from b2 to b1". > -- > - Charlie > > Charles Goodwin <[email protected]> > Online @ www.charlietech.com > > > _______________________________________________ > core mailing list > [email protected] > http://lists.xwt.org/listinfo/core > -- "It's lucky," he added, after a pause, "that there are such a lot of islands in the world. I almost envy you, Mr. Watson." -- Mustapha Mond