Starline入门,那就试试双角兽(Bicorn)吧。来源MyGitHub简介双角曲线,也称为cocked-ha曲线,是Sylvester在1864年研究的一组四次曲线的名称。Cayley在1867年研究了同一条曲线。笛卡尔坐标系中的公式说明:其中a为常数。绘制参数化变换:这里举例,绘制主要逻辑代码:functiondraw(){leta=-100,start=0;让x=0,y=0,点数=[];const加速度=0.1,最大值=40;while(start<=max){x=a*Math.罪恶(开始);constyNumerator=a*Math.pow(Math.cos(start),2)*(2+Math.cos(start));constyDenominator=3+Math.pow(Math.sin(start),2);y=yNumerator/yDenominator;points.push([x,y]);开始=开始+加速;}//实现绘制点形成线的方法line({points:points});}参考BicornCurvesBicornWolfram
