{
  "id": "fn-math-atan2",
  "dataComponent": "math",
  "heading": {
    "title": "atan2",
    "badges": ["Math", "JSMath", "PARTIAL"]
  },
  "synopsis": "Returns the angle in radians between the positive x-axis and the point (x,y). Takes two numeric arguments, y and x. Partial usage is available.",
  "codeBlocks": [
    "extend(\"math\")\\n\\n# Direct usage\\nsput( math:atan2(1, 1) )\\n# => ~0.78539816339\\n\\n# Partial usage => supply just one argument\\nmyAtan2y5 = math:atan2(5)\\n# => function waiting for x\\nsput( myAtan2y5(0) )\\n# => ~1.57079632679 (90 degrees)\\n\\n# Or skip the first param with underscore:\\natX0 = math:atan2(_, 0)\\nsput( atX0(1) )\\n# => ~1.57079632679"
  ],
  "notes": [
    "Takes two arguments: (y, x). If only one is provided (or placeholders used), partial usage applies.",
    "atan2 returns a float angle in radians, range (-π, π)."
  ]
}
