That means you were stupid before having that girlfriend. =p
On 11/13/06, Arse @ Snepo <[EMAIL PROTECTED]> wrote:
Having a girlfriend who knows flash makes you clever by default. :) just sayin. a jim wrote: > Thanks man, my girlfriend just pointed the same thing to me, you are both > clever & I am stupid. > > Jim > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Rákos Attila > Sent: 12 November 2006 21:32 > To: Flashcoders mailing list > Subject: Re: [Flashcoders] flash.geom.Point Problem. > > > j> As you can see the first value is correct, the rest have weird values. > Can > j> anyone explain this to me? > > This is because of the precision errors of floating-point arithmetic. > Try to round the results: > > import flash.geom.Point; > > var angles: Array = [0, 90, 180, 270, 360]; > > for (var i = 0; i < angles.length; i++) { > var p: Point = Point.polar(10, (angles[i] * (Math.PI/180))); > trace("x: " + Math.round(p.x) + ", y: " + Math.round(p.y)); > } > > Attila > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > -- *Anthony Eden*: Inventor at Snepo <http://www.snepo.com/> contact | [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> | 0411 5622 02 _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
-- Cheers, Ray Chuan _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com