PolarCoordinate

  • PolarCoordinate()
  • PolarCoordinate(angle: float, radius: float)

Properties


NameDescriptionType
angleThe angle in radians.float
radiusThe radius of the coordinate.float

Methods


To Cartesian

to_cartesian() Vec2

Convert the polar coordinate to Cartesian coordinates.

Returns

Vec2 : The Cartesian coordinate (vector) representation of the polar coordinate.