polar to x, y


Keywords
math, trigonometry
License
ISC
Install
npm install poltocar@5.0.0

Documentation

about

Poor man's polar to cartesian converter.

setup

Download from the npm registry:

# Add to package.json
npm install poltocar

Source from an import map to use with Deno or in-browser directly:

{
  "imports": {
    "poltocar": "https://cdn.jsdelivr.net/npm/poltocar@latest/main.js"
  }
}

usage

Try the example:

node node_modules/poltocar/example

Give it angular and radial coordinates, get an { x, y } object literal in return.

import("poltocar").then(m => console.log(m.default()))

see also