| 230 | } |
| 231 | |
| 232 | Vector3i SpatialHash::GetCellKey(const Vector3& pos) const |
| 233 | { |
| 234 | // Calculate and return key. |
| 235 | return Vector3i( |
| 236 | RoundToStep(pos.x, _cellSize) + (_cellSize / 2), |
| 237 | RoundToStep(pos.y, _cellSize) + (_cellSize / 2), |
| 238 | RoundToStep(pos.z, _cellSize) + (_cellSize / 2)); |
| 239 | } |
| 240 | |
| 241 | std::vector<Vector3i> SpatialHash::GetCellKeys(const Ray& ray, float dist) const |
| 242 | { |
nothing calls this directly
no test coverage detected