Calculating points of a mega circle..
MisterX
b.xavier at internet.lu
Tue Sep 13 14:29:20 EDT 2005
yes, there is an easy way...
Alejandro mentioned this demo I think
http://lists.runrev.com/pipermail/use-revolution/2004-July/039736.html
check it out... extremely nice demo with the answers you seek I think...
Ken also has a nice tip about it at
http://www.sonsothunder.com/devres/revolution/revolution.htm
ultimately, I added a few of my own in
PieControl which does lots of things with circles ;)
http://www.monsieurx.com/modules.php?name=News&file=article&sid=162
cheers
Xavier
-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Gordon Tillman
Sent: Tuesday, September 13, 2005 7:43 PM
To: tjframe at gmail.com; How to use Revolution
Subject: Re: Calculating points of a mega circle..
Hi TJ,
> Hi folks
> Anyone know how I would calculate the points of a circle given a
> specific number of required points and a massive radius. For example
> I'm looking to generate a list of 7200 points that describe a circle
> with a radius of
> 999999
> Any ideas how to go about this?
> Thanks,
> - TJ
Something like this would do it...
--gordy
function getCirclePoints pXOrigin, pYOrigin, pNumPoints, pRadius local
tIncr, tTheta, tTwoPi, tX, tY, tPoints put pi * 2 into tTwoPi put tTwoPi /
pNumPoints into tIncr put 0 into tTheta repeat pNumPoints times put pRadius
* cos(tTheta) + pXOrigin into tX put pRadius * sin(tTheta) + pYOrigin into
tY put tX & "," & tY & return after tPoints add tIncr to tTheta end repeat
return tPoints end getCirclePoints
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list