pub struct RingChunk<P: FullXY> {
pub visted: bool,
pub poly_index: usize,
pub ring_index: usize,
pub bbox: BBox,
pub mid: Vec<P>,
pub from: Point,
pub to: Point,
pub next: Option<NextRingChunk<P>>,
pub from_angle: f64,
pub to_angle: f64,
}Expand description
A path/piece/chunk from a polygon
Fields§
§visted: boolIf the chunk has been visited. Used by connection algorithms
poly_index: usizeThe index of the polygon it belongs to
ring_index: usizeThe index of the ring
bbox: BBoxThe bounding box
mid: Vec<P>Always stars with either the beginning of the poly ring OR an intersection point.
from: PointThe intersection point this chunk starts at
to: PointThe intersection point this chunk ends at
next: Option<NextRingChunk<P>>can point to just one or multiple chunks. Many polys can touch the same point. If none provided could be a start-end point
from_angle: f64Precomputed from angle. Useful for when intersections are computed
to_angle: f64Precomputed to angle. Useful for when intersections are computed
Implementations§
Trait Implementations§
impl<P: FullXY> StructuralPartialEq for RingChunk<P>
Auto Trait Implementations§
impl<P> Freeze for RingChunk<P>
impl<P> !RefUnwindSafe for RingChunk<P>
impl<P> !Send for RingChunk<P>
impl<P> !Sync for RingChunk<P>
impl<P> Unpin for RingChunk<P>where
P: Unpin,
impl<P> !UnwindSafe for RingChunk<P>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more