Thursday, October 12, 2017

Updated circle algorithm, as well as fixing an error

I found an issue: the equation I had for a circle was already using a center, but I was regardless pushing all points down and to the right.
Also, I put the algorithm part into a scope so the dirty-feeling letter variables were destructed to prevent further issues. Also, I added comments in case anybody decides they'd like to contribute. I also started work on interpolating points that aren't integers. That means that when the points are (pi, pi) I can't graph them. However, there's a method that I'm looking into. I may also be able to use a floating point, or have the number be within 5% or so.


Commit bc734d7 on github

No comments:

Post a Comment