Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Jan 24, 2017
1 parent e20e29c commit 6efd5df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/algorithm/contains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn line_string_contains_point<'a, L, P, T>(line_string: &'a L, point: &'a P)
}
// check if point is a vertex
for p in &vect {
if p.has_same_coordinates_as_point(point) {
if p.eq_coordinates(point) {
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub trait PointTrait<T: Float + FromPrimitive>: Sized {
fn y(&self) -> T;

// TODO: keep this?
fn has_same_coordinates_as_point<P: PointTrait<T>>(&self, other: &P) -> bool {
fn eq_coordinates<P: PointTrait<T>>(&self, other: &P) -> bool {
self.x() == other.x() && self.y() == other.y()
}

Expand Down

0 comments on commit 6efd5df

Please sign in to comment.