Re: Problem with large coordinates?
HelderMagalhaes <[email protected]> Tue, 16 Feb 2010 14:16:23 -0800 (PST)
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <bb4098ce-a786-4181-be81-8dad8ef8b34c@q21g2000yqm.googlegroups.com> |
Hi praveen,
> In the sample
> attached below, I'm adding two paths with the following coordinates:
>
> M -21333,2086 512,265 -15872,5985
>
> M -43179,3916 512,274 -32256,11715
>
> The first one is rendered fine but the second one is not (tried it in
> Firefox 3.5.7). I understand that this has something to do with
> coordinates out of supported range.
>
> I would like to better understand what exactly the limit is. Is it the
> just the value of the x/y coordinates or something more than that?
> What is the supported range of the coordinates?
I'm not sure if the limit is static or dynamic, but given your test
(which I didn't try to reproduce) I'd bet on the coordinate above
32768 [1] ("-43179,3916") being the causer. I don't have a clue if
signed/unsigned makes any difference here (i.e., if one was able to
"trick" the implementation into only using positive coordinates, the
available coordinate range would duplicate).
I remember reading something about this in the past (previous thread,
maybe?) but I don't have any pointer handy. So, actually, I'm mostly
speculating. ;-)
> Thanks,
> Praveen
Hope this helps,
Helder
[1] http://en.wikipedia.org/wiki/Power_of_two#The_first_72_powers_of_two