Asymptote is a C++ style graphics drawing package for LaTeX. I've written a few libraries to make it easier to draw pictures for physics problem sets (as part of my course website package). Here are a few teasers (rendered as SVGs).
To see the
Circ library in full form, check out this
writeup of a recent recitation problem.