I remember a library (a single header I think) based on templates and operators overloading that allowed to visualize 2D and 3D shapes in code, with expressions like:
assert( (I-----o
| |
o-----I).area() == (I---o
| |
| |
o---I).area() );
And even more complicated stuff for 3D shapes.
I had a link to this library but can't find the link... (I may have bookmarked it, but can't find the bookmark). Google is not much helpful either, at least not with my search keywords.
Anybody knows what I'm talking about?