3 * Summary: Ray definition
9 #include "fixedarray.h"
12 typedef SquareArray
<bool,1> reflect_grid
;
20 ray_def() : on_corner(false), cycle_idx(-1) {}
21 ray_def(const geom::ray
& _r
)
22 : r(_r
), on_corner(false), cycle_idx(-1) {}
24 coord_def
pos() const;
26 void bounce(const reflect_grid
&rg
);
29 // Get and set the direction.
30 double get_degrees() const;
31 void set_degrees(double d
);