Skip to content

Make Random2D.point_in_region accept a Rect2 over endpoints - #68

Merged
Xrayez merged 1 commit into
gd3from
point-in-region-rect
Apr 29, 2021
Merged

Xrayez merged 1 commit into
gd3from
point-in-region-rect

Conversation

@Xrayez

@Xrayez Xrayez commented Apr 28, 2021

Copy link
Copy Markdown
Contributor
  1. We cannot be sure if two endpoints are exactly top-left and bottom-right. Rect2 should handle this logic on it's own.
  2. Should make it more consistent with future Random3D.point_in_region where an equivalent AABB structure could be used (specifying three endpoints wouldn't be as intuitive compared to 2D).

1. We cannot be sure if two endpoints are exactly top-left and bottom-right. `Rect2` should handle this logic on it's own.
2. Should make it more consistent with future `Random3D.point_in_region` where an equivalent `AABB` structure could be used (specifying three endpoints wouldn't be as intuitive compared to 2D).
@Xrayez Xrayez added enhancement Improvement of existing features breaks compat Compatibility breakage topic:core labels Apr 28, 2021
@Xrayez Xrayez changed the title Make point_in_region accept a Rect2 over endpoints Make Random2D.point_in_region accept a Rect2 over endpoints Apr 28, 2021
@Xrayez
Xrayez merged commit 5438e07 into gd3 Apr 29, 2021
@Xrayez
Xrayez deleted the point-in-region-rect branch April 29, 2021 14:00
@Xrayez Xrayez added this to the 1.0-gd3 milestone Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaks compat Compatibility breakage enhancement Improvement of existing features topic:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant