Struct conrod::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]
V: Vertex,
fn add(self, amount: Point) -> Self
Shift the triangle by the given amount by adding it onto the position of each point.
Trait Implementations
impl<V: Copy> Copy for Triangle<V> where
V: Vertex,
[src]
V: Vertex,
impl<V: Clone> Clone for Triangle<V> where
V: Vertex,
[src]
V: Vertex,
fn clone(&self) -> Triangle<V>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<V: Debug> Debug for Triangle<V> where
V: Vertex,
[src]
V: Vertex,
impl<V: PartialEq> PartialEq for Triangle<V> where
V: Vertex,
[src]
V: Vertex,
fn eq(&self, __arg_0: &Triangle<V>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Triangle<V>) -> bool
This method tests for !=
.
impl<V> Deref for Triangle<V> where
V: Vertex,
[src]
V: Vertex,
type Target = [V; 3]
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl<V> From<[V; 3]> for Triangle<V> where
V: Vertex,
[src]
V: Vertex,
impl<V> From<(V, V, V)> for Triangle<V> where
V: Vertex,
[src]
V: Vertex,
impl<V> Into<[V; 3]> for Triangle<V> where
V: Vertex,
[src]
V: Vertex,
impl<V> Into<(V, V, V)> for Triangle<V> where
V: Vertex,
[src]
V: Vertex,