[Tutor] Using trigonometry to draw a circle
Phil
phillor9 at gmail.com
Tue May 18 19:16:36 EDT 2021
On 19/5/21 6:43 am, Roel Schroeven wrote:
> Even better: Python has a function for converting degrees to radians:
>
Thanks Roel,
> x = math.cos(math.radians(angle)) * radius + c_centre
I had replied too quickly and remembered math.radians() during the early
hours of this morning. Perhaps I shouldn't dash off an e-mail until the
next morning in future.
>
> There's also math.degrees() for the reverse operation, converting
> radians to degrees.
This could be useful, I'll file it away for future reference.
--
Regards,
Phil
More information about the Tutor
mailing list