Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 381 Bytes

polar.md

File metadata and controls

15 lines (10 loc) · 381 Bytes

Back to reference

polar(x, y)

Converts a cartesian coordinate given with x and y to a polar coordinate (radius and angle).

Returns: An object { radius: resultRadius, angle: resultAngle }.

Example:

The result in polarCoordinate will be { radius: 50, angle: 0.6435011087932844 }.

let polarCoordinate = gmynd.polar(40, 30);