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

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

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

Implementors