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

Add intersection methods to Rectangle2D, Rectangle2F and Rectangle2I #6

Open
macroing opened this issue Apr 26, 2022 · 0 comments
Open

Comments

@macroing
Copy link
Owner

Add static intersection methods to the Rectangle2D, Rectangle2F and Rectangle2I classes.

These methods should take two instances of the same Rectangle2* type as parameters and return an Optional<Polygon2*> with the optional intersection.

They previously had methods returning an Optional<Rectangle2*>. This only works if both are axis-aligned.

@macroing macroing added enhancement New feature or request and removed enhancement New feature or request labels Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant