PolarCoordinate

PolarCoordinate models a polar coordinate pair.

Constructor

PolarCoordinate models a polar coordinate pair.

Properties


NameDescriptionType
angleThe angle component in radians.float
radiusThe radius component (distance from origin).float

Methods


To Cartesian

to_cartesian() Vec2

Convert this PolarCoordinate to a Vec2.

Returns

Vec2 : Cartesian representation of this coordinate.