pub struct ArrangementEdge {
pub from: usize,
pub to: usize,
pub bulge: f64,
pub sources: Vec<EdgeSource>,
/* private fields */
}Expand description
One piece of the subdivision: part of one or more input edges, running between two vertices with no other ring’s boundary crossing it.
Fields§
§from: usizeStart vertex, an index into ArcArrangement::vertices.
to: usizeEnd vertex.
bulge: f64Bulge from from to to; 0 for a straight piece.
sources: Vec<EdgeSource>Rings whose boundary carries this piece.
Implementations§
Source§impl ArrangementEdge
impl ArrangementEdge
Sourcepub fn inside_left(&self, ring: usize) -> bool
pub fn inside_left(&self, ring: usize) -> bool
Whether ring ring contains the region on the left of the piece.
Left and right are taken along from -> to. A ring whose boundary
carries the piece contains exactly one side.
Sourcepub fn inside_right(&self, ring: usize) -> bool
pub fn inside_right(&self, ring: usize) -> bool
Whether ring ring contains the region on the right of the piece.
Trait Implementations§
Source§impl Clone for ArrangementEdge
impl Clone for ArrangementEdge
Source§fn clone(&self) -> ArrangementEdge
fn clone(&self) -> ArrangementEdge
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArrangementEdge
impl Debug for ArrangementEdge
Source§impl PartialEq for ArrangementEdge
impl PartialEq for ArrangementEdge
impl StructuralPartialEq for ArrangementEdge
Auto Trait Implementations§
impl Freeze for ArrangementEdge
impl RefUnwindSafe for ArrangementEdge
impl Send for ArrangementEdge
impl Sync for ArrangementEdge
impl Unpin for ArrangementEdge
impl UnwindSafe for ArrangementEdge
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§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