Commit b26766e 1 parent 0b20d6e commit b26766e Copy full SHA for b26766e
File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ public float MoveConstant {
63
63
/// </summary>
64
64
public int Count => _tree . Count ;
65
65
66
+ /// <summary>
67
+ /// Bounds of all the items in the tree.
68
+ /// </summary>
69
+ public RectangleF ? Bounds => _tree . Root != AABB_TREE_NULL_NODE_INDEX ? _tree . AABBs [ _tree . Root ] : null ;
70
+
66
71
/// <summary>
67
72
/// Adds a new leaf to the tree, and rebalances as necessary.
68
73
/// </summary>
Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ public float MoveConstant {
61
61
/// </summary>
62
62
public int Count => _tree . Count ;
63
63
64
+ /// <summary>
65
+ /// Bounds of all the items in the tree.
66
+ /// </summary>
67
+ public Interval ? Bounds => _tree . Root != INTERVAL_TREE_NULL_NODE_INDEX ? _tree . Intervals [ _tree . Root ] : null ;
68
+
64
69
/// <summary>
65
70
/// Adds a new leaf to the tree, and rebalances as necessary.
66
71
/// </summary>
You can’t perform that action at this time.
0 commit comments