(aabb: AABB)
| 195 | }; |
| 196 | |
| 197 | function getRandomAABB(aabb: AABB) { |
| 198 | // aabb.lowerBound.x = -proxyExtent; |
| 199 | // aabb.lowerBound.y = -proxyExtent + worldExtent; |
| 200 | aabb.lowerBound.x = Math.random(-WORLD_EXTENT, WORLD_EXTENT); |
| 201 | aabb.lowerBound.y = Math.random(0.0, 2.0 * WORLD_EXTENT); |
| 202 | |
| 203 | aabb.upperBound.x = aabb.lowerBound.x + 2.0 * PROXY_EXTENT; |
| 204 | aabb.upperBound.y = aabb.lowerBound.y + 2.0 * PROXY_EXTENT; |
| 205 | } |
| 206 | |
| 207 | function moveAABB(aabb: AABB) { |
| 208 | const d = { |
no test coverage detected