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

Scalar multiplication and division for Length #240

Merged
merged 1 commit into from Dec 5, 2017

Conversation

@Noughmad
Copy link
Contributor

Noughmad commented Dec 4, 2017

Implement Mul<T>, Div<T>, MulAssign<T> and DivAssign<T> for Length<T, U>
which multiply or divide the value but preserve the unit.

Tests for all four new implementations are included.


This change is Reviewable

Implement Mul<T>, Div<T>, MulAssign<T> and DivAssign<T> for Length<T, U>
which multiply or divide the value but preserve the unit.
@nical
nical approved these changes Dec 4, 2017
Copy link
Collaborator

nical left a comment

Looks good, thanks!

@nical
Copy link
Collaborator

nical commented Dec 4, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Dec 4, 2017

📌 Commit 653e6e6 has been approved by nical

@bors-servo
Copy link
Contributor

bors-servo commented Dec 4, 2017

Testing commit 653e6e6 with merge 54c0b39...

bors-servo added a commit that referenced this pull request Dec 4, 2017
Scalar multiplication and division for Length

Implement `Mul<T>`, `Div<T>`, `MulAssign<T>` and `DivAssign<T>` for `Length<T, U>`
which multiply or divide the value but preserve the unit.

Tests for all four new implementations are included.

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

bors-servo commented Dec 5, 2017

☀️ Test successful - status-travis
Approved by: nical
Pushing 54c0b39 to master...

@bors-servo bors-servo merged commit 653e6e6 into servo:master Dec 5, 2017
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI 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.

None yet

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