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

The x y location of the vertex.

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], Rgba)
[src]

Implementors