logoalt Hacker News

prideout • yesterday at 9:42 PM • 1 reply • view on HN

Like Raph's post says: squircles do not have a single agreed-upon mathematical definition. I don't think "rounded rectangle" does either.


Replies

raphlinus • yesterday at 9:53 PM

I think a rounded rectangle is defined as 4 straight line segments joined with G1 continuity to quarter circle arcs. I'm unaware of any other definition. The only variation I know is whether the radii have to be the same or can be different. Flexible implementations do allow the latter.