Struct polygon2::greiner_hormann::Vertex[][src]

pub struct Vertex<T> {
    pub point: [T; 2],
    pub next: *mut Vertex<T>,
    pub prev: *mut Vertex<T>,
    pub neighbour: *mut Vertex<T>,
    pub entry: bool,
    pub alpha: T,
    pub inter: bool,
    pub checked: bool,
}

Fields

point: [T; 2]next: *mut Vertex<T>prev: *mut Vertex<T>neighbour: *mut Vertex<T>entry: boolalpha: Tinter: boolchecked: bool

Implementations

impl<T> Vertex<T> where
    T: Clone + Signed + PartialEq + PartialOrd,
    &'a T: Div<&'b T, Output = T> + Add<&'b T, Output = T> + Sub<&'b T, Output = T> + Mul<&'b T, Output = T>, 
[src]

pub fn clone(vertex: *mut Vertex<T>) -> *mut Self[src]

pub fn is_inside(&self, polygon: &Polygon<T>) -> bool[src]

https://github.com/w8r/GreinerHormann/blob/master/src/vertex.js#L110

pub fn set_checked(&mut self)[src]

Auto Trait Implementations

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

impl<T> !Send for Vertex<T>

impl<T> !Sync for Vertex<T>

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

impl<T> UnwindSafe for Vertex<T> where
    T: RefUnwindSafe + 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, 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.