File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/yogi/assets/node_modules/echarts/util/coordinates.js
Back
/** * echarts坐标处理方法 * * @author Neil (杨骥, 511415343@qq.com) */ define( function (require) { var zrMath = require('zrender/tool/math'); /** * 极坐标转直角坐标 * * @param {number} 半径 * @param {number} 角度 * * @return {Array.<number>} 直角坐标[x,y] */ function polar2cartesian(r, theta) { return [r * zrMath.sin(theta), r*zrMath.cos(theta)]; } /** * 直角坐标转极坐标 * * @param {number} 横坐标 * @param {number} 纵坐标 * * @return {Array.<number>} 极坐标[r,theta] */ function cartesian2polar(x, y) { return [Math.sqrt(x * x + y * y), Math.atan(y / x)]; } return { polar2cartesian : polar2cartesian, cartesian2polar : cartesian2polar }; } );
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings