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

多边形计算公式 #19

Open
MoRunChang2015 opened this issue Jun 11, 2018 · 1 comment
Open

多边形计算公式 #19

MoRunChang2015 opened this issue Jun 11, 2018 · 1 comment
Labels

Comments

@MoRunChang2015
Copy link

totalArea += ((points.get(i).x - points.get(i + 1).x)

这里的多边形计算公式原理是什么?
通常多边形的计算公式应该是Sum(XkZk+1 - Xk+1Zk)/ 2)

@jzyong
Copy link
Owner

jzyong commented Jun 13, 2018

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

No branches or pull requests

2 participants