Trait nannou::ui::widget::primitive::shape::triangles::Vertex [−][src]
pub trait Vertex: Clone + Copy + PartialEq<Self> { pub fn point(&self) -> [f64; 2]; pub fn add(self, [f64; 2]) -> Self; }
Types used as vertices that make up a list of triangles.
Required methods
pub fn point(&self) -> [f64; 2]
[src]
The x y location of the vertex.
pub fn add(self, [f64; 2]) -> Self
[src]
Add the given vector onto the position of self and return the result.