Antkeeper
0.0.1
|
Node used in 2D rectangle packing. More...
#include <rect-pack.hpp>
Public Types | |
using | scalar_type = T |
Scalar type. More... | |
using | rect_type = rectangle< T > |
Rect type. More... | |
Public Attributes | |
std::unique_ptr< rect_pack_node > | children [2] |
Pointers to the two children of the node, if any. More... | |
rect_type | bounds {{T{0}, T{0}}, {T{0}, T{0}}} |
Bounds of the node. More... | |
bool | occupied {false} |
true if the node is occupied, false otherwise. More... | |
Node used in 2D rectangle packing.
Definition at line 34 of file rect-pack.hpp.
using geom::rect_pack_node< T >::rect_type = rectangle<T> |
Rect type.
Definition at line 40 of file rect-pack.hpp.
using geom::rect_pack_node< T >::scalar_type = T |
Scalar type.
Definition at line 37 of file rect-pack.hpp.
rect_type geom::rect_pack_node< T >::bounds {{T{0}, T{0}}, {T{0}, T{0}}} |
Bounds of the node.
Definition at line 46 of file rect-pack.hpp.
std::unique_ptr<rect_pack_node> geom::rect_pack_node< T >::children[2] |
Pointers to the two children of the node, if any.
Definition at line 43 of file rect-pack.hpp.
bool geom::rect_pack_node< T >::occupied {false} |
true
if the node is occupied, false
otherwise.
Definition at line 49 of file rect-pack.hpp.