import json
import math

# Les angles repères du cercle : fraction de tour, degrés, radians, et le point (cos θ, sin θ)
landmarks = [("0", 0), ("π/4", 1 / 8), ("π/2", 1 / 4), ("π", 1 / 2), ("3π/2", 3 / 4)]
data = []
for label, turn in landmarks:
    theta = 2 * math.pi * turn
    data.append(
        {
            "label": label,
            "turn": turn,
            "degrees": round(360 * turn, 1),
            "radians": round(theta, 3),
            "x": round(math.cos(theta), 3) + 0.0,
            "y": round(math.sin(theta), 3) + 0.0,
        }
    )
print(json.dumps(data))
