title: How to translate a point to specified distance at a specified angle?
body: <p>I want to translate a point to specific distance, along a line whose angle is given in degrees.</p>
  
  <pre><code>var initialPoint = [0,0];   //Starting Point
  var distance = 100;         //Distance in pixels to be translated
  var degree = 45;            //Direction of move
  var translatedPoint = moveByDegree(initialPoint, degree, distance);
  
  function moveByDegree(initialPoint, degree, distance)
  {
      //formula to generate translatedPoint by degree &amp; distance
      // . . . 
  
      return translatedPoint;
  }
  </code></pre>
  
  <ul>
  <li>0 degree should move UP.</li>
  <li>180 degree should move DOWN.</li>
  <li>90 degree should move RIGHT.</li>
  <li>270 degree should move LEFT.</li>
  <li>Other angles would correspond to a DIAGONAL direction.</li>
  </ul>
  
  <p>Give me simple algorithm or JavaScript code.</p>