const angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);