From c9bab10f6baee7bba8305c721d78e361a7c97ceb Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 21 Jan 2026 22:57:44 -0800 Subject: [PATCH] more tweak --- src/spindex.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/spindex.rs b/src/spindex.rs index a2a6145..a59127f 100644 --- a/src/spindex.rs +++ b/src/spindex.rs @@ -5,9 +5,7 @@ use bevy::{ use crate::geom::Point; -/// An entry in the R*‑tree, which can be either a leaf or a node. #[derive(Debug, Clone)] - pub enum Entry { Leaf { mbr: Aabb2d, object: Point }, Node { mbr: Aabb2d, child: TreeNode }, @@ -22,20 +20,12 @@ impl Entry { } } -/// A node in the R*‑tree. #[derive(Debug, Clone)] pub struct TreeNode { - /// The entries stored in this node. pub entries: Vec, - /// Indicates whether this node is a leaf. pub is_leaf: bool, } -/// R*‑tree data structure for indexing 2D or 3D points. -/// -/// The tree is initialized with a maximum number of entries per node. If a node -/// exceeds this number, it will split. The tree supports insertion, deletion, -/// and range searches. #[derive(Debug, Clone)] pub struct RStarTree { root: TreeNode,