News for hackers. Stuff that matters.
Re:Calculating the Bounding Rectangle of a Circular Sector by optiot on Saturday October 25, 2025 @04:39PM (#45706799)
Oh cool! I was working on something similar (but not the same) a couple years back when trying to figure out the bounding box of an arc along the circumference of a circular watch face: https://www.desmos.com/calculator/4e5c41c2ab

I don't remember exactly what I was doing but I think you might also be able to skip the for loop by directly calculating the point on the axis by using mod or floor/ceil.

There are no comments on this comment yet.