Skip to content

Commit

Permalink
Merge pull request #26 from michaelkirk/mkirk/update-robust
Browse files Browse the repository at this point in the history
update robust crate
  • Loading branch information
Ihor authored Jan 11, 2021
2 parents d7457be + e809e78 commit 428ee2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ keywords = ["gis", "geo", "geography", "geospatial"]
[dependencies]
geo-types = { version = "0.6.0", default-features = false }
num-traits = "0.2"
robust = "0.1"
robust = "0.2"
float_next_after = "0.1"

[dev-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions lib/src/boolean/signed_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ use geo_types::Coordinate;
use robust::{orient2d, Coord};

#[inline]
pub fn coordinate_to_robust<F>(p: Coordinate<F>) -> Coord
pub fn coordinate_to_robust<F>(p: Coordinate<F>) -> Coord<F>
where
F: Float,
{
Coord {
x: p.x.into(),
y: p.y.into(),
x: p.x,
y: p.y,
}
}

Expand Down

0 comments on commit 428ee2f

Please sign in to comment.