简介顺着双角线,试试Cardioid。来源MyGitHub简介Cardioid是Castillon于1741年在《Philosophical Transactions of the Royal Societyin》的一篇论文中首先使用的名称,它是一条曲线,是圆周上的一点绕等半径圆的圆周旋转形成的轨迹。笛卡尔坐标系中的公式说明:其中a为常数。绘制参数化变换:这里举例,绘制主要逻辑代码:functiondraw(){leta=40,start=0;让x=0,y=0,点数=[];const加速度=0.1,最大值=40;while(start<=max){constcal=2*start;x=a*(2*Math.cos(start)-Math.cos(cal));y=a*(2*Math.sin(开始)-Math.sin(cal));points.push([x,y]);开始=开始+加速;}//实现画点成线的方法line({points:points});}参考CardioidCurvesCardioidWolfram
