Enum geo::algorithm::line_intersection::LineIntersection
source · [−]pub enum LineIntersection<F: GeoFloat> {
SinglePoint {
intersection: Coordinate<F>,
is_proper: bool,
},
Collinear {
intersection: Line<F>,
},
}
Variants
SinglePoint
Fields
intersection: Coordinate<F>
is_proper: bool
For Lines which intersect in a single point, that point may be either an endpoint or in the interior of each Line. If the point lies in the interior of both Lines, we call it a proper intersection.
Note
Due to the limited precision of most float data-types, the
calculated intersection point may be snapped to one of the
end-points even though all the end-points of the two
lines are distinct points. In such cases, this field is
still set to true
. Please refer test_case:
test_central_endpoint_heuristic_failure_1
for such an
example.
Lines intersect in a single point
Collinear
Fields
intersection: Line<F>
Overlapping Lines intersect in a line segment
Implementations
Trait Implementations
sourceimpl<F: Clone + GeoFloat> Clone for LineIntersection<F>
impl<F: Clone + GeoFloat> Clone for LineIntersection<F>
sourcefn clone(&self) -> LineIntersection<F>
fn clone(&self) -> LineIntersection<F>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<F: Debug + GeoFloat> Debug for LineIntersection<F>
impl<F: Debug + GeoFloat> Debug for LineIntersection<F>
sourceimpl<F: PartialEq + GeoFloat> PartialEq<LineIntersection<F>> for LineIntersection<F>
impl<F: PartialEq + GeoFloat> PartialEq<LineIntersection<F>> for LineIntersection<F>
sourcefn eq(&self, other: &LineIntersection<F>) -> bool
fn eq(&self, other: &LineIntersection<F>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<F: Copy + GeoFloat> Copy for LineIntersection<F>
impl<F: Eq + GeoFloat> Eq for LineIntersection<F>
impl<F: GeoFloat> StructuralEq for LineIntersection<F>
impl<F: GeoFloat> StructuralPartialEq for LineIntersection<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for LineIntersection<F> where
F: RefUnwindSafe,
impl<F> Send for LineIntersection<F> where
F: Send,
impl<F> Sync for LineIntersection<F> where
F: Sync,
impl<F> Unpin for LineIntersection<F> where
F: Unpin,
impl<F> UnwindSafe for LineIntersection<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more