Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Calculating the Bounding Rectangle of a Circular Sector (asawicki.info)
30 points by ibobev 11 months ago | hide | past | favorite | 1 comment


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: