This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdint> | |
template< typename Result > | |
struct FnvHashTraits; | |
template <> | |
struct FnvHashTraits<std::uint32_t> { | |
static constexpr std::uint32_t basis = 2166136261ul; | |
static constexpr std::uint32_t prime = 16777619ul; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* An iterator for a cubic grid of voxels. | |
* | |
* The iterator traverses all voxels along a specified direction starting from | |
* a given position. | |
*/ | |
mxBIBREF( | |
"Ray casting technique described in paper:" | |
"A Fast Voxel Traversal Algorithm for Ray Tracing - John Amanatides, Andrew Woo [1987]" | |
"http://www.cse.yorku.ca/~amana/research/grid.pdf" |