PHP class to get a circle of coordinates based on a central point, distance and number of segments