4 ms·
A programming dilemma as old as time: Encoding Rectangles
- noduerme 5y agoHeh. I remember when Actionscript deprecated drawCircle(origin,radius) for drawEllipse(origin,w,h) ...and yet, rectangles always still had an origin in the upper-left. I guess it depends on whether you're trying to write your own drawing API or if you just want to get things done. If you do want to get things done then this question is more like the bikeshedding as old as time. Put fingers to keys and write R(w,h)=>{someshit}
- raxxorraxor 5y agoAbstract that rectangle to a triangle.