summaryrefslogtreecommitdiffhomepage
path: root/src/raycast-diag.hpp
blob: 12d027bb81851a62646609d2b2097edb6e0e9c07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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