Struct nannou::ui::widget::primitive::shape::triangles::Triangle[][src]

pub struct Triangle<V>(pub [V; 3])
where
    V: Vertex
;

A single triangle described by three vertices.

Methods

impl<V> Triangle<V> where
    V: Vertex
[src]

Shift the triangle by the given amount by adding it onto the position of each point.

The three points that make up the triangle.

impl Triangle<[f64; 2]>
[src]

Convert the Triangle<Point> to a Triangle<ColoredPoint>.

Convert the Triangle<Point> to a Triangle<ColoredPoint> using the given color.

Trait Implementations

impl<V> Clone for Triangle<V> where
    V: Clone + Vertex
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<V> Debug for Triangle<V> where
    V: Debug + Vertex
[src]

Formats the value using the given formatter. Read more

impl<V> AsRef<Triangle<V>> for Triangle<V> where
    V: Vertex
[src]

Performs the conversion.

impl<V> From<[V; 3]> for Triangle<V> where
    V: Vertex
[src]

Performs the conversion.

impl<V> From<(V, V, V)> for Triangle<V> where
    V: Vertex
[src]

Performs the conversion.

impl<V> Into<(V, V, V)> for Triangle<V> where
    V: Vertex
[src]

Performs the conversion.

impl<V> Into<[V; 3]> for Triangle<V> where
    V: Vertex
[src]

Performs the conversion.

impl<V> Deref for Triangle<V> where
    V: Vertex
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<V> Copy for Triangle<V> where
    V: Copy + Vertex
[src]

impl<V> PartialEq<Triangle<V>> for Triangle<V> where
    V: PartialEq<V> + Vertex
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<V> Send for Triangle<V> where
    V: Send

impl<V> Sync for Triangle<V> where
    V: Sync