Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Random2D.point_in_region accept a Rect2 over endpoints #68

Merged
merged 1 commit into from
Apr 29, 2021

Conversation

Xrayez
Copy link
Contributor

@Xrayez Xrayez commented Apr 28, 2021

  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