--- In [email protected], "Pramod Eligeti." <[EMAIL PROTECTED]> wrote: > i am using the following formula to generate the points on this new > outer circle > > CX1 = CX + r`*Math.cos(angle) r`=80 angle may be from 0-360 > CY1 = CY + r`*Math.sin(angle) > > > but when i generate new x,y like this the points are not coming > exactly at desired positions. i think due to float values. can anyone > have an idea of exact formula to place circles at diff positions of > outer circle.
Math.sin() and Math.cos() expct the argument in radians, not degrees. You need to convert angle to radians: > CX1 = CX + r`*Math.cos(angle*Math.PI/180.0) > CY1 = CY + r`*Math.sin(angle*Math.PI/180.0) As for editor, I use TextPad (http://www.textpad.com/) with an appropriate dictionary/syntax file for SVG and JavaScript. Unfortunatly it doesn't handle multiple format documents (i.e. JS inside SVG, or SVG inside PHP). I'd be curious what others use. I've heard Eclipse has an SVG editor now... ------------------------ Yahoo! Groups Sponsor --------------------~--> You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/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/

