diff options
Diffstat (limited to 'src/raycast-diag.hpp')
-rw-r--r-- | src/raycast-diag.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/raycast-diag.hpp b/src/raycast-diag.hpp new file mode 100644 index 00000000..12d027bb --- /dev/null +++ b/src/raycast-diag.hpp @@ -0,0 +1,26 @@ +#pragma once +#include "raycast.hpp" +#include <Corrade/Containers/Array.h> + +namespace floormat::detail_rc { + +struct bbox +{ + point center; + Vector2ui size; +}; + +} // namespace floormat::detail_rc + +namespace floormat::rc { + +struct raycast_diag_s +{ + Array<floormat::detail_rc::bbox> path{}; + Vector2 V, dir, dir_inv_norm; + Vector2ui size; + //unsigned short_steps, long_steps; + float tmin; +}; + +} // namespace floormat::rc |