-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels