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§
source§impl<'a, T: TotalOrd, const N: usize> LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> LineSegmentView<'a, T, N>
source§impl<T: TotalOrd> LineSegmentView<'_, T>
impl<T: TotalOrd> LineSegmentView<'_, T>
pub fn contains(&self, pt: &Point<T>) -> boolwhere
T: PolygonScalar,
Trait Implementations§
source§impl<'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>
source§fn 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.
source§impl<'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>
source§fn 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.
source§impl<'a, T: TotalOrd, const N: usize> From<&'a LineSegment<T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> From<&'a LineSegment<T, N>> for LineSegmentView<'a, T, N>
source§fn from(line: &'a LineSegment<T, N>) -> LineSegmentView<'a, T, N>
fn from(line: &'a LineSegment<T, N>) -> LineSegmentView<'a, T, N>
Converts to this type from the input type.
source§impl<'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>
source§impl<'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>
source§fn 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.
source§impl<'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>
source§fn 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.
source§impl<'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>
source§impl<T> Intersects<LineSegmentView<'_, T>> for &HalfLineSoS<'_, T>where
T: PolygonScalar,
impl<T> Intersects<LineSegmentView<'_, T>> for &HalfLineSoS<'_, T>where
T: PolygonScalar,
type Result = IHalfLineLineSegmentSoS
fn intersect(self, other: LineSegmentView<'_, T>) -> Option<Self::Result>
source§impl<T> Intersects<LineSegmentView<'_, T>> for &LineSoS<'_, T>where
T: PolygonScalar,
impl<T> Intersects<LineSegmentView<'_, T>> for &LineSoS<'_, T>where
T: PolygonScalar,
type Result = ILineLineSegmentSoS
fn intersect(self, other: LineSegmentView<'_, T>) -> Option<Self::Result>
source§impl<'a, T> Intersects for LineSegmentView<'a, T>where
T: PolygonScalar,
impl<'a, T> Intersects for LineSegmentView<'a, T>where
T: PolygonScalar,
type Result = ILineSegment<'a, T>
fn intersect(self, other: LineSegmentView<'a, T>) -> Option<Self::Result>
impl<T: TotalOrd, const N: usize> Copy for LineSegmentView<'_, T, N>
impl<'a, T: Eq + TotalOrd, const N: usize> Eq 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> Freeze for LineSegmentView<'a, T, N>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)