Point
arcade.Point (Class)
A 2D point with x and y coordinates.
Instance Members
The x coordinate of this point.
The y coordinate of this point.
Sets the x and y values of this Point based on polar coordinates.
| Name | Type | Default | Description |
|---|---|---|---|
azimuth |
Float | The angle in radians (or degrees if asDegrees is true). | |
radius |
Float | 1 |
The distance from the origin. |
asDegrees |
Bool | false |
Whether the azimuth is given in degrees (true) or radians (false). |
Creates a new Point instance.
| Name | Type | Description |
|---|---|---|
x |
Float | The x coordinate. |
y |
Float | The y coordinate. |
Private Members
Converts degrees to radians.
| Name | Type | Description |
|---|---|---|
deg |
Float | The angle in degrees. |
| Returns | Description |
|---|---|
| Float | The angle in radians. |