[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L> Total Turtle Trip



This is one way to get POLY to have the same properties
as the MSWLogo-ARC2/Chuck/Brian/JimsVersionOne/EquidistantDotsFromCenter
method. If someone wants to simplify it be my guest.

I did not say I liked it.

The only error you see now is due to floating point errors.

TO CIRCLE :RADIUS :POINTS
MAKE "ANGLE 1
MAKE "DELTA 2*:RADIUS*(COS ((180-:ANGLE)/2))
RT :ANGLE/2
REPEAT :POINTS [FD :DELTA RT :ANGLE]
LT :ANGLE/2
END

TO DIFF
CS
ARC2 90 100
SHOW POS
CS
CIRCLE 100 90
SHOW POS
END

diff
[100 100]
[99.9999999999996 99.9999999999996]

-- 
===============================================================

George Mills
email: mills@softronix.com
http://www.softronix.com
The www page contains some very powerful educational software.
Our single most important investment is our kids.
---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home