Re: draw_polygon - possible code...
| From: | Markus Fischer | Date: | Wed, 29 Aug 2001 20:34:53 +0000 |
| Subject: | Re: draw_polygon - possible code... | ||
| References: | 1 2 3 4 5 6 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-38@lists.php.net to get a copy of this message | ||
On Wed, Aug 29, 2001 at 03:15:07PM -0500, Andrei Zmievski wrote :
> On Wed, 29 Aug 2001, Markus Fischer wrote:
> > flat ... array(x1,y1,x2,y2 ....
>
> o-kkayyy.. I'll point the finger at you when they come after me. :)
... but then maybe its convinient to have $point[0][X] too ... X)
> > What do you mean exactly? We can alway detect what kind of array
> > or type the user is passing with some simple checks?
>
> Yes, but you'll have to do those checks on every call, affecting the
> performance.
So ... what now? Is it ever of any use to use GdkPoint?
So we have
1 [ ] array(x1,y1,x2,y2...
2 [ ] $points[0][X] = ....
3 [ ] array(new GdkPoint(x1,y1), new GdkPoint(x2,y2) ...
Hmm .. 2) seems very appealing too ...
Let us set-up a vote on gtk.php.net *rungs*
- Markus
--
Markus Fischer, http://guru.josefine.at/~mfischer/
EMail: mfischer@guru.josefine.at
PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0
-All your scripts are belong to Zend-