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

Access members directly instead of using min_x(),min_y(),etc. in Box3D #325

Merged
merged 2 commits into from Mar 8, 2019

Conversation

@nical
Copy link
Collaborator

nical commented Mar 7, 2019

I'm not sure what we'll do about #321 but in the mean time, directly accessing the members in the box types makes it clear that no code will implicitly paper over negative rects.


This change is Reviewable

@nical
Copy link
Collaborator Author

nical commented Mar 7, 2019

r? @kvark

The second commit removes Box3D::min_x/min_x_typed altogether (which we could add back later). I don't think that they are very useful since the members are as easily used directly, and that works around #321 for TypedBox3D.
TypedBox2D doesn't have these methods at the moment.

@kvark
Copy link
Member

kvark commented Mar 7, 2019

I like the series of improvements!
@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Mar 7, 2019

📌 Commit 1ad2505 has been approved by kvark

bors-servo added a commit that referenced this pull request Mar 7, 2019
Access members directly instead of using min_x(),min_y(),etc. in Box3D

I'm not sure what we'll do about #321 but in the mean time, directly accessing the members in the box types makes it clear that no code will implicitly paper over negative rects.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/euclid/325)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Mar 7, 2019

Testing commit 1ad2505 with merge 487e6a5...

@bors-servo
Copy link
Contributor

bors-servo commented Mar 8, 2019

💥 Test timed out

@nical
Copy link
Collaborator Author

nical commented Mar 8, 2019

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Mar 8, 2019

Testing commit 1ad2505 with merge c65afa9...

bors-servo added a commit that referenced this pull request Mar 8, 2019
Access members directly instead of using min_x(),min_y(),etc. in Box3D

I'm not sure what we'll do about #321 but in the mean time, directly accessing the members in the box types makes it clear that no code will implicitly paper over negative rects.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/euclid/325)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Mar 8, 2019

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

@bors-servo bors-servo merged commit 1ad2505 into servo:master Mar 8, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
homu Test successful
Details
@nical nical deleted the nical:min_x branch Mar 8, 2019
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.

None yet

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