Struct rgeometry::data::LineSegmentView
source · [−]pub struct LineSegmentView<'a, T: TotalOrd, const N: usize = 2> {
pub min: EndPoint<&'a Point<T, N>>,
pub max: EndPoint<&'a Point<T, N>>,
}
Fields
min: EndPoint<&'a Point<T, N>>
max: EndPoint<&'a Point<T, N>>
Implementations
sourceimpl<'a, T: TotalOrd, const N: usize> LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> LineSegmentView<'a, T, N>
sourceimpl<'a, T: TotalOrd> LineSegmentView<'a, T>
impl<'a, T: TotalOrd> LineSegmentView<'a, T>
pub fn contains(&self, pt: &Point<T>) -> bool where
T: PolygonScalar,
Trait Implementations
sourceimpl<'a, T: TotalOrd, const N: usize> Clone for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> Clone for LineSegmentView<'a, T, N>
sourceimpl<'a, T: TotalOrd, const N: usize> From<&'a DirectedEdge_<T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> From<&'a DirectedEdge_<T, N>> for LineSegmentView<'a, T, N>
sourcefn from(edge: &'a DirectedEdge_<T, N>) -> LineSegmentView<'a, T, N>
fn from(edge: &'a DirectedEdge_<T, N>) -> LineSegmentView<'a, T, N>
Converts to this type from the input type.
sourceimpl<'a, T: TotalOrd, const N: usize> From<&'a Range<Point<T, N>>> for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> From<&'a Range<Point<T, N>>> for LineSegmentView<'a, T, N>
sourcefn from(range: &'a Range<Point<T, N>>) -> LineSegmentView<'a, T, N>
fn from(range: &'a Range<Point<T, N>>) -> LineSegmentView<'a, T, N>
Converts to this type from the input type.
sourceimpl<'a, T: TotalOrd, const N: usize> From<&'a RangeInclusive<Point<T, N>>> for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> From<&'a RangeInclusive<Point<T, N>>> for LineSegmentView<'a, T, N>
sourcefn from(range: &'a RangeInclusive<Point<T, N>>) -> LineSegmentView<'a, T, N>
fn from(range: &'a RangeInclusive<Point<T, N>>) -> LineSegmentView<'a, T, N>
Converts to this type from the input type.
sourceimpl<'a, T: TotalOrd, const N: usize> From<&DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> From<&DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
sourcefn from(edge: &DirectedEdge<'a, T, N>) -> LineSegmentView<'a, T, N>
fn from(edge: &DirectedEdge<'a, T, N>) -> LineSegmentView<'a, T, N>
Converts to this type from the input type.
sourceimpl<'a, T: TotalOrd, const N: usize> From<DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> From<DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
sourcefn from(edge: DirectedEdge<'a, T, N>) -> LineSegmentView<'a, T, N>
fn from(edge: DirectedEdge<'a, T, N>) -> LineSegmentView<'a, T, N>
Converts to this type from the input type.
sourceimpl<'a, T: TotalOrd, const N: usize> From<Range<&'a Point<T, N>>> for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> From<Range<&'a Point<T, N>>> for LineSegmentView<'a, T, N>
sourcefn from(range: Range<&'a Point<T, N>>) -> LineSegmentView<'a, T, N>
fn from(range: Range<&'a Point<T, N>>) -> LineSegmentView<'a, T, N>
Converts to this type from the input type.
sourceimpl<T> Intersects<LineSegmentView<'_, T, 2>> for &HalfLineSoS<'_, T> where
T: PolygonScalar,
impl<T> Intersects<LineSegmentView<'_, T, 2>> for &HalfLineSoS<'_, T> where
T: PolygonScalar,
type Result = IHalfLineLineSegmentSoS
fn intersect(self, other: LineSegmentView<'_, T>) -> Option<Self::Result>
sourceimpl<T> Intersects<LineSegmentView<'_, T, 2>> for &LineSoS<'_, T> where
T: PolygonScalar,
impl<T> Intersects<LineSegmentView<'_, T, 2>> for &LineSoS<'_, T> where
T: PolygonScalar,
type Result = ILineLineSegmentSoS
fn intersect(self, other: LineSegmentView<'_, T>) -> Option<Self::Result>
sourceimpl<'a, T> Intersects<LineSegmentView<'a, T, 2>> for LineSegmentView<'a, T> where
T: PolygonScalar,
impl<'a, T> Intersects<LineSegmentView<'a, T, 2>> for LineSegmentView<'a, T> where
T: PolygonScalar,
type Result = ILineSegment<'a, T>
fn intersect(self, other: LineSegmentView<'a, T>) -> Option<Self::Result>
sourceimpl<'a, T: PartialEq + TotalOrd, const N: usize> PartialEq<LineSegmentView<'a, T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: PartialEq + TotalOrd, const N: usize> PartialEq<LineSegmentView<'a, T, N>> for LineSegmentView<'a, T, N>
sourcefn eq(&self, other: &LineSegmentView<'a, T, N>) -> bool
fn eq(&self, other: &LineSegmentView<'a, T, N>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LineSegmentView<'a, T, N>) -> bool
fn ne(&self, other: &LineSegmentView<'a, T, N>) -> bool
This method tests for !=
.
impl<'a, T: TotalOrd, const N: usize> Copy for LineSegmentView<'a, T, N>
impl<'a, T: Eq + TotalOrd, const N: usize> Eq for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> StructuralEq for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> StructuralPartialEq for LineSegmentView<'a, T, N>
Auto Trait Implementations
impl<'a, T, const N: usize> RefUnwindSafe for LineSegmentView<'a, T, N> where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for LineSegmentView<'a, T, N> where
T: Sync,
impl<'a, T, const N: usize> Sync for LineSegmentView<'a, T, N> where
T: Sync,
impl<'a, T, const N: usize> Unpin for LineSegmentView<'a, T, N>
impl<'a, T, const N: usize> UnwindSafe for LineSegmentView<'a, T, N> where
T: RefUnwindSafe,
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