Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.13.3 drawPath的arcTo方法计算错误 #1136

Open
Z-ammo opened this issue Jul 19, 2023 · 1 comment
Open

2.13.3 drawPath的arcTo方法计算错误 #1136

Z-ammo opened this issue Jul 19, 2023 · 1 comment

Comments

@Z-ammo
Copy link

Z-ammo commented Jul 19, 2023

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

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

@LayaCharley
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants