pub struct EdgeProfile { /* private fields */ }
Expand description
Capture a profile of each edge to assist the interpolation process.
Implementations§
Source§impl EdgeProfile
impl EdgeProfile
Sourcepub fn from_abc<P>(
points: &[P],
ab_kind: SegmentKind,
a_ix: PointIndex,
b_ix: PointIndex,
c: Option<PointIndex>,
) -> Self
pub fn from_abc<P>( points: &[P], ab_kind: SegmentKind, a_ix: PointIndex, b_ix: PointIndex, c: Option<PointIndex>, ) -> Self
Create an EdgeProfile
for the edge a->b.
c
specifies the following node in order to determine the turning angle between a->b and
b->c.
If c
is None
, an angle of 0
is assumed.
Sourcepub fn start_weight(&self) -> u32
pub fn start_weight(&self) -> u32
The weight of the point at the start of the edge.
Sourcepub fn kind(&self) -> &EdgeProfileKind
pub fn kind(&self) -> &EdgeProfileKind
Edge profile data specific to the kind of edge.
Sourcepub fn lit_distance(&self) -> f32
pub fn lit_distance(&self) -> f32
The lit distance covered by this edge.
Sourcepub fn min_points(&self, conf: &InterpolationConfig) -> u32
pub fn min_points(&self, conf: &InterpolationConfig) -> u32
The minimum number of points required to draw the edge.
Trait Implementations§
Source§impl Clone for EdgeProfile
impl Clone for EdgeProfile
Source§fn clone(&self) -> EdgeProfile
fn clone(&self) -> EdgeProfile
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 EdgeProfile
impl Debug for EdgeProfile
Source§impl PartialEq for EdgeProfile
impl PartialEq for EdgeProfile
impl Copy for EdgeProfile
impl StructuralPartialEq for EdgeProfile
Auto Trait Implementations§
impl Freeze for EdgeProfile
impl RefUnwindSafe for EdgeProfile
impl Send for EdgeProfile
impl Sync for EdgeProfile
impl Unpin for EdgeProfile
impl UnwindSafe for EdgeProfile
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