fixed a major flaw in the logic where i was trying to fix a rounding error i had encountered at some point. problem solved, and im not really sure where that error went. truthfully it could have been a bug in the very buggy simulation software i was using to verify the toolpaths. whatever. added test.py where i verified that the arithmetic was correct.