A small attempt ... ************** Credits: Equations in http://local.wasp.uwa.edu.au/~pbourke/geometry/