PolarCoordinate
A polar coordinate representation with angle and radius.
Constructor
-
PolarCoordinate() -
PolarCoordinate(angle: float, radius: float)
Parameters
angle: Angle in radians.radius: Distance from the origin.
Properties
| Name | Description | Type |
|---|---|---|
angle | The angle in radians. | float |
radius | The radius of the coordinate. | float |
Methods
To Cartesian
to_cartesian() → Vec2Convert the polar coordinate to Cartesian coordinates.
Returns
Vec2 : The Cartesian coordinate (vector) representation of the polar coordinate.