2d geometry library for nodejs and javascript, including affine transformations and polygons