Struct cavalier_contours::PlineVertex[][src]

pub struct PlineVertex<T = f64> {
    pub x: T,
    pub y: T,
    pub bulge: T,
}

Fields

x: Ty: Tbulge: T

Implementations

impl<T> PlineVertex<T> where
    T: Real
[src]

pub fn new(x: T, y: T, bulge: T) -> Self[src]

pub fn from_slice(slice: &[T]) -> Option<Self>[src]

pub fn from_vector2(vector2: Vector2<T>, bulge: T) -> Self[src]

pub fn pos(&self) -> Vector2<T>[src]

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

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

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

pub fn fuzzy_eq_eps(&self, other: Self, fuzzy_epsilon: T) -> bool[src]

Fuzzy equal comparison with another vertex using fuzzy_epsilon given.

pub fn fuzzy_eq(&self, other: Self) -> bool[src]

Fuzzy equal comparison with another vertex using T::fuzzy_epsilon().

Trait Implementations

impl<T: Clone> Clone for PlineVertex<T>[src]

impl<T: Copy> Copy for PlineVertex<T>[src]

impl<T: Debug> Debug for PlineVertex<T>[src]

impl<T: PartialEq> PartialEq<PlineVertex<T>> for PlineVertex<T>[src]

impl<T> StructuralPartialEq for PlineVertex<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for PlineVertex<T> where
    T: RefUnwindSafe

impl<T> Send for PlineVertex<T> where
    T: Send

impl<T> Sync for PlineVertex<T> where
    T: Sync

impl<T> Unpin for PlineVertex<T> where
    T: Unpin

impl<T> UnwindSafe for PlineVertex<T> where
    T: UnwindSafe

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.