-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
A-MathFundamental domain-agnostic mathematical operationsFundamental domain-agnostic mathematical operationsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesA "normal" level of difficulty; suitable for simple features or challenging fixesS-Needs-DesignThis issue requires design work to think about how it would best be accomplishedThis issue requires design work to think about how it would best be accomplished
Description
Hi Bevy team,
I have a question about the design of Aabb2d::contains.
The current implementation treats AABB boundaries as inclusive
(other.min >= self.min && other.max <= self.max), which effectively makes
it a closed interval. In some domains, half-open intervals are common, so
I wanted to check whether this inclusive behavior is intentional.
Is Aabb2d meant to be understood primarily as a geometric/continuous
shape rather than a logical or grid-aligned region?
Thanks for the clarification!
Metadata
Metadata
Assignees
Labels
A-MathFundamental domain-agnostic mathematical operationsFundamental domain-agnostic mathematical operationsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesA "normal" level of difficulty; suitable for simple features or challenging fixesS-Needs-DesignThis issue requires design work to think about how it would best be accomplishedThis issue requires design work to think about how it would best be accomplished