Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 408 Bytes

cartesian.md

File metadata and controls

15 lines (10 loc) · 408 Bytes

Back to reference

cartesian(radius, angle)

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

Returns: An object { x: resultX, y: resultY }.

Example:

The result in cartesianCoordinate will be { x: 86.60254037844388, y: 50 }.

let cartesianCoordinate = gmynd.cartesian(100, gmynd.radians(30));