• Overview
    • delete()
    • get()
    • has()
    • put()
    • Overview
    • convert_date()
    • decode_b64()
    • decode_json()
    • encode_b64()
    • encode_json()
    • join()
    • keys()
    • length()
    • pairs()
    • perlin()
    • profile_expr()
    • rand()
    • range()
    • reset_seed()
    • simplex()
    • slice()
    • sort_key()
    • sort()
    • system_variable_get()
    • system_variable_set()
    • time()
    • undef()
    • unix_time()
    • values()
    • var()
    • vars()
    • Overview
    • all()
    • filter()
    • first()
    • map()
    • reduce()
    • Overview
    • abs()
    • acos()
    • acosh()
    • acot()
    • asin()
    • asinh()
    • atan()
    • atan2()
    • atanh()
    • ceil()
    • cos()
    • cosh()
    • cot()
    • coth()
    • csc()
    • csch()
    • deg()
    • fact()
    • floor()
    • ln()
    • ln1p()
    • log()
    • log10()
    • log1p()
    • mandelbrot()
    • max()
    • min()
    • rad()
    • relu()
    • round()
    • sec()
    • sech()
    • sin()
    • sinh()
    • sqrt()
    • tan()
    • tanh()
    • Overview
    • lower()
    • replace_first()
    • replace()
    • split()
    • title()
    • upper()
    • Overview
    • sleep()
    • synchronize()
    • task_completed()
    • task_count()
    • task_dock()
    • task_join()
    • task_thread()
    • task_value()
    • task()
    • Overview
    • copy()
    • type()
  1. Scarpet
  2. Built-ins
  3. Math
  4. atan2()

atan2()

View on GitHub

Syntax

atan2(y, x)

Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta). Return value is in degrees.

Found a problem with this page?

  • View the source on GitHub
  • Edit this page on GitHub