Add marker containing position & id, make group use child markers not

vec2
This commit is contained in:
Madeline Busig 2025-02-17 19:26:23 -08:00
parent 496d063389
commit b2e2e575a7

View File

@ -40,6 +40,11 @@ struct group_characteristic_t {
etl::vector<variable_id_t, g_max_group_size> m_variable_ids;
};
struct marker_t {
mtl::vec2 m_pos;
uint32_t m_id;
};
struct leaf_t {
group_id_t m_group_id;
mtl::vec2 m_position;
@ -54,10 +59,10 @@ struct weighted_leaf_t {
struct group_t {
static constexpr size_t g_max_child_leafs = 16;
static constexpr size_t g_max_group_points = 8;
static constexpr size_t g_max_child_markers = 8;
etl::vector<weighted_leaf_t, g_max_child_leafs> m_child_leafs;
etl::vector<mtl::vec2, g_max_group_points> m_points;
etl::vector<marker_t, g_max_child_markers> m_child_markers;
};
struct weighted_group_t {