The W3C Geometry Interfaces implemented in JavaScript and polyfilled.
github.com/trusktr/dommetry
trusktr/dommetry