core library used by other polygonal libraries