Math.TAU = Math.PI*2; // the real circle constant /** * Rotate points around origin * * @param points List of coordinates: [x1,y1, x2,y2, ...] * @param radians Angle by which to rotate */ function rotate(points, radians) { for(let i = 0; i hours, getMinutes: () => minutes, }); };