aoi algorithm see: http://www.codedump.info/?p=388 (in Chinese)
lichuang / aoi Goto Github PK
View Code? Open in Web Editor NEWaoi algorithm
aoi algorithm
aoi algorithm see: http://www.codedump.info/?p=388 (in Chinese)
最近在实现AOI,参考了您的这段实现,发现了一个问题,代码 scene.cpp 的 Line 79,当flag为false时,不是应该将新增对象插入到链表末尾吗?我打印了一下:
mac01deMac-mini:AOI mac01$ ./test
begin add object=============
print current obj_x_list:
id = 1, x = 41, y = 21
print current obj_x_list:
id = 2, x = 44, y = 2
id = 1, x = 41, y = 21
print current obj_x_list:
id = 3, x = 23, y = 7
id = 2, x = 44, y = 2
id = 1, x = 41, y = 21
print current obj_x_list:
id = 3, x = 23, y = 7
id = 4, x = 42, y = 36
id = 2, x = 44, y = 2
id = 1, x = 41, y = 21
print current obj_x_list:
id = 5, x = 4, y = 28
id = 3, x = 23, y = 7
id = 4, x = 42, y = 36
id = 2, x = 44, y = 2
id = 1, x = 41, y = 21
国人的项目,我就用中文啦!
PS: 我在用 Erlang 实现这套逻辑
我是想GetRangeSet只遍历X轴,每个节点同时判断Y坐标是不是也在范围内,这样只遍历2次(X轴的左和右)就得到所有在视野范围内的了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.