Struct nannou::mesh::vertex::WithNormal[][src]

pub struct WithNormal<V, N = Default> {
    pub vertex: V,
    pub normal: N,
}

A vertex with its normal vector.

Fields

Trait Implementations

impl<V: Copy, N: Copy> Copy for WithNormal<V, N>
[src]

impl<V: Clone, N: Clone> Clone for WithNormal<V, N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<V: Debug, N: Debug> Debug for WithNormal<V, N>
[src]

Formats the value using the given formatter. Read more

impl<V: Default, N: Default> Default for WithNormal<V, N>
[src]

Returns the "default value" for a type. Read more

impl<V: PartialEq, N: PartialEq> PartialEq for WithNormal<V, N>
[src]

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

This method tests for !=.

impl<S, V, N> ApplyTransform<S> for WithNormal<V, N> where
    V: ApplyTransform<S>,
    S: BaseFloat
[src]

Apply the given transform and return the result.

impl<V, N> Deref for WithNormal<V, N>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<V, N> DerefMut for WithNormal<V, N>
[src]

Mutably dereferences the value.

impl<V, N> Vertex for WithNormal<V, N> where
    V: Vertex,
    N: Clone + Copy + PartialEq
[src]

The values used to describe the vertex position.

impl<V, N> Vertex2d for WithNormal<V, N> where
    V: Vertex2d,
    Self: Vertex<Scalar = V::Scalar>, 
[src]

The x, y location of the vertex.

impl<V, N> Vertex3d for WithNormal<V, N> where
    V: Vertex3d,
    Self: Vertex<Scalar = V::Scalar>, 
[src]

The x, y, z location of the vertex.

impl<A, V, N> From<(A, N)> for WithNormal<V, N> where
    A: Into<V>, 
[src]

Performs the conversion.

impl<M, V, N> PushVertex<WithNormal<V, N>> for WithNormals<M, Vec<N>> where
    M: PushVertex<V>, 
[src]

Push the given vertex onto the mesh. Read more

Auto Trait Implementations

impl<V, N> Send for WithNormal<V, N> where
    N: Send,
    V: Send

impl<V, N> Sync for WithNormal<V, N> where
    N: Sync,
    V: Sync