[][src]Trait nannou::ui::widget::primitive::shape::triangles::Vertex

pub trait Vertex: Clone + PartialEq<Self> + Copy {
    fn point(&self) -> [f64; 2];
fn add(self, [f64; 2]) -> Self; }

Types used as vertices that make up a list of triangles.

Required methods

fn point(&self) -> [f64; 2]

The x y location of the vertex.

fn add(self, [f64; 2]) -> Self

Add the given vector onto the position of self and return the result.

Loading content...

Implementations on Foreign Types

impl Vertex for ([f64; 2], Rgba)[src]

impl Vertex for [f64; 2][src]

Loading content...

Implementors

Loading content...