Quote:Original post by Merlz
Here's another one, just for fun:
abs(x) + abs(y) <= 1
Although this one is at 45 degrees rotation to the axis, it's of max radius 1 :-)
That's a filled square though (or a filled diamond if you prefer)
A more generic
unfilled version of that would be:
abs(x) + abs(y) = r
Of course you could probably rotate that by 45 degrees, which would probably look something like this:
abs(x*sin(45)+y*cos(45)) + abs(x*cos(45)-y*sin(45)) = r
But I'm probably just getting carried away, as nmi has already posted the simplest solution.