Trait nannou::ui::prelude::widget::primitive::shape::triangles::Vertex [−][src]
pub trait Vertex: Copy + PartialEq<Self> + Clone { 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.
Implementations on Foreign Types
impl Vertex for [f64; 2]
[src]
impl Vertex for [f64; 2]
impl Vertex for ([f64; 2], Rgba)
[src]
impl Vertex for ([f64; 2], Rgba)