Skip to content

Instantly share code, notes, and snippets.

@ruthenium
Forked from cevherkarakoc/polarToCartesian.js
Created February 24, 2017 17:19
Show Gist options
  • Select an option

  • Save ruthenium/3fe75c0034924553c8665429aad5af7c to your computer and use it in GitHub Desktop.

Select an option

Save ruthenium/3fe75c0034924553c8665429aad5af7c to your computer and use it in GitHub Desktop.

Revisions

  1. @cevherkarakoc cevherkarakoc created this gist Jul 13, 2016.
    6 changes: 6 additions & 0 deletions polarToCartesian.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    function polarToCartesian(radius,radian){
    return {
    x:radius*Math.cos(radian),
    y:radius*Math.sin(radian)
    }
    }