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

Type safe perspective division #291

Merged
merged 1 commit into from Jun 7, 2018
Merged

Type safe perspective division #291

merged 1 commit into from Jun 7, 2018

Conversation

@kvark
Copy link
Member

kvark commented Jun 6, 2018

Fixes #290

This is not necessarily the final version of the code but just something to support the position, something that allows to get a basic impression on how much noise those unwraps are adding safety those new methods are providing :) Feedback is welcome!


This change is Reviewable

@kvark kvark requested a review from nical Jun 6, 2018
@nical
nical approved these changes Jun 7, 2018
Copy link
Collaborator

nical left a comment

LGTM.

@kvark kvark force-pushed the kvark:divide branch from 6f1747c to 62c15c8 Jun 7, 2018
@kvark
Copy link
Member Author

kvark commented Jun 7, 2018

Alright, I went through the code, cleaned up a bit and added a few more tests. Should be ready now.

@nical
Copy link
Collaborator

nical commented Jun 7, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jun 7, 2018

📌 Commit 62c15c8 has been approved by nical

bors-servo added a commit that referenced this pull request Jun 7, 2018
Type safe perspective division

Fixes #290

This is not necessarily the final version of the code but just something to support the position, something that allows to get a basic impression on how much ~~noise those unwraps are adding~~ safety those new methods are providing :) Feedback is welcome!

<!-- 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/291)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 7, 2018

Testing commit 62c15c8 with merge 6bae5be...

@bors-servo
Copy link
Contributor

bors-servo commented Jun 7, 2018

☀️ Test successful - status-travis
Approved by: nical
Pushing 6bae5be to master...

@bors-servo bors-servo merged commit 62c15c8 into servo:master Jun 7, 2018
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@kvark kvark deleted the kvark:divide branch Jun 7, 2018
bors-servo added a commit to servo/webrender that referenced this pull request Aug 3, 2018
Proper near plane splitting

The PR is built on the shoulders of #2913, #2741, servo/euclid#277, servo/euclid#291, servo/plane-split#12, and (last but not the least!) servo/plane-split#15

It uses the new clipping semantics in `plane-split` crate uniformly for both bounding box computation and 3d plane splitting itself, ensuring that no incorrect perspective divisions are performed (and closing quite a few TODO entries). Also adds a small reftest for the latter.

Fixes #2272

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2947)
<!-- Reviewable:end -->
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.