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

关于constant.h中relPos长度为64的理解 #8

Open
yslenjoy opened this issue Jun 1, 2022 · 1 comment
Open

关于constant.h中relPos长度为64的理解 #8

yslenjoy opened this issue Jun 1, 2022 · 1 comment

Comments

@yslenjoy
Copy link

yslenjoy commented Jun 1, 2022

源代码英文注释中解释relPos

The maximum number of occupied cells

其实就是对应变量bbSize的平方:bbSize = std::ceil((sqrt(width * width + length* length) + 4) / cellSize) = ceil(sqrt(1.75^2+2.65^2)+4) = ceil(7.2) = 8

@yslenjoy yslenjoy closed this as completed Jun 1, 2022
@yslenjoy yslenjoy reopened this Jun 1, 2022
@WeiJunREN
Copy link

你好,请问这里+ 4和/cellSize的物理意义分别是什么呢

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