atan2()
Math / TrigonometryDescription
Calculates the angle formed by a point relative to the positive x-axis. More useful than atan for full-circle angles.
Syntax
float atan2(float y, float x)
Parameters
| Name | Type | Description |
|---|---|---|
| y | float | y-coordinate |
| x | float | x-coordinate |
Returns
floatRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...