[−][src]Struct lasy::EdgeProfile
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]
points: &[P],
ab_kind: SegmentKind,
a_ix: PointIndex,
b_ix: PointIndex,
c: Option<PointIndex>
) -> Self where
P: Position + Weight,
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]
&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>,
The interpolated points for this edge.
Trait Implementations
impl Clone for EdgeProfile
[src]
fn clone(&self) -> EdgeProfile
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EdgeProfile
[src]
impl Debug for EdgeProfile
[src]
impl PartialEq<EdgeProfile> for EdgeProfile
[src]
fn eq(&self, other: &EdgeProfile) -> bool
[src]
fn ne(&self, other: &EdgeProfile) -> bool
[src]
impl StructuralPartialEq for EdgeProfile
[src]
Auto Trait Implementations
impl RefUnwindSafe for EdgeProfile
impl Send for EdgeProfile
impl Sync for EdgeProfile
impl Unpin for EdgeProfile
impl UnwindSafe for EdgeProfile
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,