--- id: math-cos name: Math.cos category: math kind: namespace-method tokens: Math.cos sig: Math.cos(radians) -> fixed tip: Cosine of an angle in radians. order: 13 ns: Math member: cos --- Returns the cosine of radians as a fixed in -1.0..1.0, computed as Math.sin(radians + pi/2) off the same deterministic table. Use Math.cos and Math.sin together to convert an angle into an (x, y) direction — for orbits, aiming, or steering. ```ludic program Demo { handler Step phase Update { let x = center_x + Math.cos(angle) * radius } } ```