PolarCoordinate
PolarCoordinate models a polar coordinate pair.
Constructor
-
PolarCoordinate() → PolarCoordinate -
PolarCoordinate(
angle: SupportsFloat,
radius: SupportsFloat
) → PolarCoordinate
PolarCoordinate models a polar coordinate pair.
Properties
| Name | Description | Type |
|---|---|---|
angle | The angle component in radians. | float |
radius | The radius component (distance from origin). | float |
Methods
To Cartesian
to_cartesian() → Vec2Convert this PolarCoordinate to a Vec2.
Returns
Vec2 : Cartesian representation of this coordinate.