Skip to content

Inconsistent behaviour regarding Containment #6

@Yarsenius

Description

@Yarsenius

Containment cases that involve opposite sides of a Rect are not determined in the same way. For example, a target Point is considered to be .beyondLeft if its x component is less than a Rect's left, but is considered to be .beyondRight if its x component is greater than or equal to the Rect's right. Logically, the condition should be simply greater than, in order to be consistent with the condition for the .beyondLeft case. The same problem occurs with .beyondTop and .beyondBottom cases. Such behaviour may be intentional, but it causes problems when trying to detect collisions from opposite sides of a Rect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions