Struct rgeometry::data::LineSegmentView
source · [−]pub struct LineSegmentView<'a, T, const N: usize = 2_usize> {
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, const N: usize> LineSegmentView<'a, T, N>
impl<'a, T, const N: usize> LineSegmentView<'a, T, N>
sourceimpl<'a, T> LineSegmentView<'a, T, 2>
impl<'a, T> LineSegmentView<'a, T, 2>
pub fn contains(&self, pt: &Point<T, 2>) -> bool where
T: PolygonScalar,
Trait Implementations
sourceimpl<'a, T, const N: usize> Clone for LineSegmentView<'a, T, N>
impl<'a, T, const N: usize> Clone for LineSegmentView<'a, T, N>
sourceimpl<'a, T: Debug, const N: usize> Debug for LineSegmentView<'a, T, N>
impl<'a, T: Debug, const N: usize> Debug for LineSegmentView<'a, T, N>
sourceimpl<'a, T: Ord, const N: usize> From<&'_ DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: Ord, 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: Ord, const N: usize> From<&'a DirectedEdge_<T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: Ord, 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: Ord, const N: usize> From<&'a Range<Point<T, N>>> for LineSegmentView<'a, T, N>
impl<'a, T: Ord, 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: Ord, const N: usize> From<&'a RangeInclusive<Point<T, N>>> for LineSegmentView<'a, T, N>
impl<'a, T: Ord, 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: Ord, const N: usize> From<DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: Ord, 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: Ord, const N: usize> From<Range<&'a Point<T, N>>> for LineSegmentView<'a, T, N>
impl<'a, T: Ord, 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_usize>> for &LineSoS<'_, T, 2> where
T: PolygonScalar,
impl<T> Intersects<LineSegmentView<'_, T, 2_usize>> for &LineSoS<'_, T, 2> where
T: PolygonScalar,
type Result = ILineLineSegmentSoS
fn intersect(self, other: LineSegmentView<'_, T, 2>) -> Option<Self::Result>
sourceimpl<T> Intersects<LineSegmentView<'_, T, 2_usize>> for &HalfLineSoS<'_, T, 2> where
T: PolygonScalar,
impl<T> Intersects<LineSegmentView<'_, T, 2_usize>> for &HalfLineSoS<'_, T, 2> where
T: PolygonScalar,
type Result = IHalfLineLineSegmentSoS
fn intersect(self, other: LineSegmentView<'_, T, 2>) -> Option<Self::Result>
sourceimpl<'a, T> Intersects<LineSegmentView<'a, T, 2_usize>> for LineSegmentView<'a, T, 2> where
T: PolygonScalar,
impl<'a, T> Intersects<LineSegmentView<'a, T, 2_usize>> for LineSegmentView<'a, T, 2> where
T: PolygonScalar,
type Result = ILineSegment<'a, T>
fn intersect(self, other: LineSegmentView<'a, T, 2>) -> Option<Self::Result>
sourceimpl<'a, T: PartialEq, const N: usize> PartialEq<LineSegmentView<'a, T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: PartialEq, 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, const N: usize> Copy for LineSegmentView<'a, T, N>
impl<'a, T: Eq, const N: usize> Eq for LineSegmentView<'a, T, N>
impl<'a, T, const N: usize> StructuralEq for LineSegmentView<'a, T, N>
impl<'a, T, 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more