On Fri, 18 Nov 2005 09:33:22 +0100
klaus Förster <[EMAIL PROTECTED]> wrote:

>  >      snappedX  = userCoord.x*Math.round( gridSizeX/gridSizeX );
>  >
>  > Which makes a lot more sense than what I said before.
> well, not really - gridSizeX/gridSizeX will always be 1 (except if 
> gridSizeX is zero ...), so let me try again - here's my solution ;-)
> 
> snappedX = Math.round(userCoord.x/gridSizeX)*gridSizeX

Okay, I'll be quiet now. I'm obviously not doing well on what should have been
easy.<grin/>

...slinking away...

G. Wade
-- 
That's what I love about GUIs: They make simple tasks easier, and complex
tasks impossible.
           -- John William Chambless, <[EMAIL PROTECTED]>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to