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

Implement `distance_to` method for points #428

Merged
merged 1 commit into from Apr 11, 2020

Conversation

@hannobraun
Copy link
Contributor

hannobraun commented Apr 11, 2020

I don't know, if such a simple helper method is considered acceptable
for this crate, but I figured the best way of asking that question is by
just submitting a pull request.

I'm also not sure about the return value. It seems like returning
Length would be the right thing to do, but that's not what the
length methods return. I figured I'd follow that established
convention, but I'm happy to make changes as requested.

I don't know, if such a simple helper method is considered acceptable
for this crate, but I figured the best way of asking that question is by
just submitting a pull request.

I'm also not sure about the return value. It seems like returning
`Length` would be the right thing to do, but that's not what the
`length` methods return. I figured I'd follow that established
convention, but I'm happy to make changes as requested.
@nical
Copy link
Collaborator

nical commented Apr 11, 2020

Looks good to me, thanks.

It seems like returning
Length would be the right thing to do, but that's not what the
length methods return. I figured I'd follow that established
convention

We'll probably add back Length variants of some methods when we have figured out a good naming convention. In any case, following the established convention is the right thing to do here.

@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Apr 11, 2020

📌 Commit 8e2baba has been approved by nical

@bors-servo
Copy link
Contributor

bors-servo commented Apr 11, 2020

Testing commit 8e2baba with merge 357d645...

@bors-servo
Copy link
Contributor

bors-servo commented Apr 11, 2020

☀️ Test successful - checks-travis
Approved by: nical
Pushing 357d645 to master...

@bors-servo bors-servo merged commit 357d645 into servo:master Apr 11, 2020
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
homu Test successful
Details
@hannobraun hannobraun deleted the hannobraun:distance-to branch Apr 11, 2020
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.