[Proc Gen] BSPNode - Lightweight node reference #203
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#204 [Proc Gen] BSP - Iteration (leaves, traverse)
john/McRogueFace
#205 [Proc Gen] BSP - Query methods (find, contains)
john/McRogueFace
#202 [Proc Gen] BSP - Core class with splitting
john/McRogueFace
Reference
john/McRogueFace#203
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent Issue: #192
Depends On: #202 (BSP core)
Overview
Implement
BSPNodeas a lightweight, read-only reference to a node in a BSP tree.Specification
Properties
bounds((x, y), (w, h))levelintindexintis_leafboolsplit_horizontalbool | Nonesplit_positionint | NoneNavigation Properties
leftBSPNode | NonerightBSPNode | NoneparentBSPNode | NonesiblingBSPNode | NoneMethods
Check if position is inside this node's bounds.
Return the center point of this node's bounds.
Implementation Notes
posaccepts tuple, list, ormcrfpy.Vectorcenteris(x + w//2, y + h//2)Acceptance Criteria
containschecks bounds correctlycenterreturns center point