[][src]Struct lasy::EdgeProfile

pub struct EdgeProfile { /* fields omitted */ }

Capture a profile of each edge to assist the interpolation process.

Implementations

impl EdgeProfile[src]

pub fn from_abc<P>(
    points: &[P],
    ab_kind: SegmentKind,
    a_ix: PointIndex,
    b_ix: PointIndex,
    c: Option<PointIndex>
) -> Self where
    P: Position + Weight
[src]

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.

pub fn start_weight(&self) -> u32[src]

The weight of the point at the start of the edge.

pub fn kind(&self) -> &EdgeProfileKind[src]

Edge profile data specific to the kind of edge.

pub fn is_blank(&self) -> bool[src]

Whether or not the edge is blank.

pub fn is_lit(&self) -> bool[src]

Whether or not the edge is lit.

pub fn lit_distance(&self) -> f32[src]

The lit distance covered by this edge.

pub fn min_points(&self, conf: &InterpolationConfig) -> u32[src]

The minimum number of points required to draw the edge.

pub fn points<P, R>(
    &self,
    points: &[P],
    a_ix: PointIndex,
    b_ix: PointIndex,
    conf: &InterpolationConfig,
    excess_points: u32
) -> Vec<R> where
    P: Clone + Into<R> + Position + Weight,
    R: Blanked + Clone + Lerp<Scalar = f32>, 
[src]

The interpolated points for this edge.

Trait Implementations

impl Clone for EdgeProfile[src]

impl Copy for EdgeProfile[src]

impl Debug for EdgeProfile[src]

impl PartialEq<EdgeProfile> for EdgeProfile[src]

impl StructuralPartialEq for EdgeProfile[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.