layabox / LayaAir

LayaAir is a fully platform rendering engine with rich 2D/3D rendering capabilities and a mature integrated development platform

Home Page:https://www.layaair.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2.13.3 drawPath的arcTo方法计算错误

Z-ammo opened this issue · comments

commented

版本2.13.3
src\layaAir\laya\resource\Context.ts:2163
错误代码为:
len1 = r / Math.tan(halfAng);
应该是:
len1 = r * Math.tan(halfAng);

话说为什么要用反人类的外切线交点啊!

谢谢,经过验证,您提供的是正确的,我们采用了您的反馈。