-
Notifications
You must be signed in to change notification settings - Fork 200
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
Migrate Line/LineString to be a series of Coordinates (not Points). #244
Conversation
e9a720b
to
2099592
Compare
d621246
to
4e7532a
Compare
A pretty big pull request, but it should be ready to go now! I'll squash before approving |
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.
This looks good to me, mod the few nits. Is it worth including a few lines on the distinctions between Coordinate
and Point
types from prior conversations (#15) in either the Point
or Coordinate
docstrings, just for context?
geo-types/src/coordinate.rs
Outdated
where | ||
T: CoordinateType, | ||
{ | ||
/// Returns the dot product of the two points: |
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.
should this be "…of the two coordinates"?
geo-types/src/coordinate.rs
Outdated
self.x * coord.x + self.y * coord.y | ||
} | ||
|
||
/// Returns the cross product of 3 points. A positive value implies |
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.
Same here.
geo-types/src/line.rs
Outdated
@@ -141,8 +141,27 @@ where | |||
/// # ); | |||
/// ``` | |||
/// | |||
/// [determinant]: https://en.wikipedia.org/wiki/Determinant |
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.
FYI: links have to be inline for RLS
geo-types/src/line_string.rs
Outdated
/// ``` | ||
/// | ||
/// You can iterate over the points in the `LineString` | ||
/// You can iterate over the coordintes in the `LineString` |
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.
Typo.
cfac035
to
f312406
Compare
f312406
to
b82b3a5
Compare
bors r=urschrei |
244: Migrate Line/LineString to be a series of Coordinates (not Points). r=urschrei a=frewsxcv Relevant conversation in #15. This is a breaking change for `geo-types`. I'm _not_ planning to publish a release if this merges. I have a couple other breaking changes I'd like to consider before bumping the Rust geo ecosystem. Co-authored-by: Corey Farwell <[email protected]>
Build succeeded |
Relevant conversation in #15.
This is a breaking change for
geo-types
.I'm not planning to publish a release if this merges. I have a couple other breaking changes I'd like to consider before bumping the Rust geo ecosystem.