UNPKG

php.js

Version:

Use phpjs functions as required.

10 lines (8 loc) 295 B
module.exports=function(){ return atan2.apply(exports,arguments) }; function atan2(y, x) { // discuss at: http://phpjs.org/functions/atan2/ // original by: Brett Zamir (http://brett-zamir.me) // example 1: atan2(1, 1); // returns 1: 0.7853981633974483 return Math.atan2(y, x); }