pub fn strictly_contains(&self, point: &Point) -> bool{
        if (point.lat-self.a.lat).abs()<TOLERANCE&&(point.lon-self.a.lon).abs()<TOLERANCE {
            return false;
        }
        if (point.lat-self.b.lat).abs()<TOLERANCE&&(point.lon-self.b.lon).abs()<TOLERANCE {
            return false;
        }
        return self.contains(point);
    }
/// Check if a point lies on a segment, making sure it's not one of its ends
Check if a point lies on a segment, making sure it's not one of its ends
Check if a point lies on a segment making sure it ' s not one of its ends
pub fn strictly_contains(&self, point: &Point) -> bool{
        if (point.lat-self.a.lat).abs()<TOLERANCE&&(point.lon-self.a.lon).abs()<TOLERANCE {
            return false;
        }
        if (point.lat-self.b.lat).abs()<TOLERANCE&&(point.lon-self.b.lon).abs()<TOLERANCE {
            return false;
        }
        return self.contains(point);
    }
pub fn strictly_contains ( & self , point : & Point ) -> bool { if ( point . lat - self . a . lat ) . abs ( ) < TOLERANCE && ( point . lon - self . a . lon ) . abs ( ) < TOLERANCE { return false ; } if ( point . lat - self . b . lat ) . abs ( ) < TOLERANCE && ( point . lon - self . b . lon ) . abs ( ) < TOLERANCE { return false ; } return self . contains ( point ) ; }
Check if a point lies on a segment, making sure it's not one of its ends
Check if a point lies on a segment making sure it ' s not one of its ends
&self
point
&Point
&self
point
&Point