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

Fix Box2D/Box3D::from_points. #392

Merged
merged 2 commits into from Dec 13, 2019
Merged

Fix Box2D/Box3D::from_points. #392

merged 2 commits into from Dec 13, 2019

Conversation

@nical
Copy link
Collaborator

nical commented Dec 13, 2019

The behavior of returning Box2D::zero() when a single point is passed was unintuitive and inconsistent with the behavior previoulsy established in Rect::from_points (to return an empty rect at the position of the single point).

Fixes #390.

The behavior of returning Box2D::zero() when a single point is passed was unintuitive and inconsistent with the behavior previoulsy established in Rect::from_points (to return an empty rect at the position of the single point).

Fixes #390.
@nical nical force-pushed the nical:from_points branch from ded613f to 7965e1a Dec 13, 2019
@nical
Copy link
Collaborator Author

nical commented Dec 13, 2019

r? @kvark

@kvark
kvark approved these changes Dec 13, 2019
@nical
Copy link
Collaborator Author

nical commented Dec 13, 2019

@bors-servo r=kvark

@bors-servo
Copy link
Contributor

bors-servo commented Dec 13, 2019

📌 Commit 5c79954 has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Dec 13, 2019

Testing commit 5c79954 with merge db64462...

bors-servo added a commit that referenced this pull request Dec 13, 2019
Fix Box2D/Box3D::from_points.

The behavior of returning Box2D::zero() when a single point is passed was unintuitive and inconsistent with the behavior previoulsy established in Rect::from_points (to return an empty rect at the position of the single point).

Fixes #390.
@bors-servo
Copy link
Contributor

bors-servo commented Dec 13, 2019

☀️ Test successful - checks-travis
Approved by: kvark
Pushing db64462 to master...

@bors-servo bors-servo merged commit 5c79954 into servo:master Dec 13, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.