Antkeeper  0.0.1
Public Types | Public Attributes | List of all members
geom::rect_pack_node< T > Struct Template Reference

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_nodechildren [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...
 

Detailed Description

template<class T>
struct geom::rect_pack_node< T >

Node used in 2D rectangle packing.

See also
geom::rect_pack

Definition at line 34 of file rect-pack.hpp.

Member Typedef Documentation

◆ rect_type

template<class T >
using geom::rect_pack_node< T >::rect_type = rectangle<T>

Rect type.

Definition at line 40 of file rect-pack.hpp.

◆ scalar_type

template<class T >
using geom::rect_pack_node< T >::scalar_type = T

Scalar type.

Definition at line 37 of file rect-pack.hpp.

Member Data Documentation

◆ bounds

template<class T >
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.

◆ children

template<class T >
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.

◆ occupied

template<class T >
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.


The documentation for this struct was generated from the following file: