-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add Line::reversed
, Line::midpoint
, rename Arc::flipped
#375
Conversation
b8bce59
to
0c30ddf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor bikeshedding, otherwise LGTM.
src/line.rs
Outdated
/// Return a copy of this `Line` in the opposite direction. | ||
#[must_use] | ||
#[inline] | ||
pub fn flipped(&self) -> Line { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I feel like reversed
is a slightly better name for this.
Also, it might be helpful if the comment describes what it does: “Returns a copy of this Line with the end points swapped so that it points in the opposite direction.”
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll revise the comment.
The name matches the other flipped
that I've added in a previous PR, Arc::flipped
.
I think I like reversed
better though as well, so will update both.
0c30ddf
to
485b1c3
Compare
Line::flipped
, Line::midpoint
Line::reversed
, Line::midpoint
, rename Arc::flipped
@dfrg Updated to also rename |
All looks good, thanks! |
If there are 2 plausible names, feel free to add the less good one as a doc alias :) |
No description provided.