You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use geo::algorithm::contains::Contains;use geo::{LineString,Point};let line_string = LineString::from(vec![(0.,0.),(3.,3.)]);let point_on_line = Point::new(1.,1.);assert!(line_string.contains(&point_on_line));// <- 💥 currently fails
I don't think this was a change in behavior with this PR, but at least one point of comparison, postgis, agrees that we should change it so that my example passes:
psql> SELECT ST_Contains(
ST_MakeLine(ST_MakePoint(0,0), ST_MakePoint(3,3)),
ST_MakePoint(1,1)
);
st_contains
-------------
t
The text was updated successfully, but these errors were encountered:
From @michaelkirk's comment here:
The text was updated successfully, but these errors were encountered: