Struct nannou::mesh::WithNormals [−][src]
pub struct WithNormals<M, N> { /* fields omitted */ }
A Mesh
type with an added channel containing vertex normals.
Trait Implementations
impl<M: Copy, N: Copy> Copy for WithNormals<M, N>
[src]
impl<M: Copy, N: Copy> Copy for WithNormals<M, N>
impl<M: Clone, N: Clone> Clone for WithNormals<M, N>
[src]
impl<M: Clone, N: Clone> Clone for WithNormals<M, N>
fn clone(&self) -> WithNormals<M, N>
[src]
fn clone(&self) -> WithNormals<M, N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<M: Debug, N: Debug> Debug for WithNormals<M, N>
[src]
impl<M: Debug, N: Debug> Debug for WithNormals<M, N>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<M: PartialEq, N: PartialEq> PartialEq for WithNormals<M, N>
[src]
impl<M: PartialEq, N: PartialEq> PartialEq for WithNormals<M, N>
fn eq(&self, other: &WithNormals<M, N>) -> bool
[src]
fn eq(&self, other: &WithNormals<M, N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &WithNormals<M, N>) -> bool
[src]
fn ne(&self, other: &WithNormals<M, N>) -> bool
This method tests for !=
.
impl<M, N> GetVertex for WithNormals<M, N> where
M: GetVertex,
N: Channel,
N::Element: Clone,
[src]
impl<M, N> GetVertex for WithNormals<M, N> where
M: GetVertex,
N: Channel,
N::Element: Clone,
type Vertex = WithNormal<M::Vertex, N::Element>
The vertex type representing all channels of data within the mesh at a single index.
fn get_vertex(&self, index: usize) -> Option<Self::Vertex>
[src]
fn get_vertex(&self, index: usize) -> Option<Self::Vertex>
Create a vertex containing all channel properties for the given index.
impl<M, N> Points for WithNormals<M, N> where
M: Points,
[src]
impl<M, N> Points for WithNormals<M, N> where
M: Points,
type Scalar = M::Scalar
The scalar value used for the vertex coordinates.
type Point = M::Point
The vertex type used to represent the location of a vertex.
type Points = M::Points
The channel type containing points.
fn points(&self) -> &Self::Points
[src]
fn points(&self) -> &Self::Points
Borrow the vertex channel from the mesh.
impl<M, N> Indices for WithNormals<M, N> where
M: Indices,
[src]
impl<M, N> Indices for WithNormals<M, N> where
M: Indices,
type Indices = M::Indices
The channel type containing indices.
fn indices(&self) -> &Self::Indices
[src]
fn indices(&self) -> &Self::Indices
Borrow the index channel from the mesh.
impl<M, N> Colors for WithNormals<M, N> where
M: Colors,
[src]
impl<M, N> Colors for WithNormals<M, N> where
M: Colors,
type Color = M::Color
The color type stored within the channel.
type Colors = M::Colors
The channel type containing colors.
fn colors(&self) -> &Self::Colors
[src]
fn colors(&self) -> &Self::Colors
Borrow the color channel from the mesh.
impl<M, N> TexCoords for WithNormals<M, N> where
M: TexCoords,
[src]
impl<M, N> TexCoords for WithNormals<M, N> where
M: TexCoords,
type TexCoordScalar = M::TexCoordScalar
The scalar value used for the texture coordinates.
type TexCoords = M::TexCoords
The channel type containing texture coordinates.
fn tex_coords(&self) -> &Self::TexCoords
[src]
fn tex_coords(&self) -> &Self::TexCoords
Borrow the texture coordinate channel from the mesh.
impl<M, N> Normals for WithNormals<M, N> where
M: Points,
M::Point: EuclideanSpace,
N: Channel<Element = <M::Point as EuclideanSpace>::Diff>,
[src]
impl<M, N> Normals for WithNormals<M, N> where
M: Points,
M::Point: EuclideanSpace,
N: Channel<Element = <M::Point as EuclideanSpace>::Diff>,
type Normals = N
The channel type containing vertex normals.
fn normals(&self) -> &Self::Normals
[src]
fn normals(&self) -> &Self::Normals
Borrow the normal channel from the mesh.
impl<M, V, N> PushVertex<WithNormal<V, N>> for WithNormals<M, Vec<N>> where
M: PushVertex<V>,
[src]
impl<M, V, N> PushVertex<WithNormal<V, N>> for WithNormals<M, Vec<N>> where
M: PushVertex<V>,
fn push_vertex(&mut self, v: WithNormal<V, N>)
[src]
fn push_vertex(&mut self, v: WithNormal<V, N>)
Push the given vertex onto the mesh. Read more
impl<M, N> PushIndex for WithNormals<M, N> where
M: PushIndex,
[src]
impl<M, N> PushIndex for WithNormals<M, N> where
M: PushIndex,
fn push_index(&mut self, index: usize)
[src]
fn push_index(&mut self, index: usize)
Push a new index onto the indices channel.
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = usize>,
[src]
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = usize>,
Extend the Mesh's Indices channel with the given indices.
impl<M, N> ClearIndices for WithNormals<M, N> where
M: ClearIndices,
[src]
impl<M, N> ClearIndices for WithNormals<M, N> where
M: ClearIndices,
fn clear_indices(&mut self)
[src]
fn clear_indices(&mut self)
Clear all indices from the mesh.
impl<M, N> ClearVertices for WithNormals<M, Vec<N>> where
M: ClearVertices,
[src]
impl<M, N> ClearVertices for WithNormals<M, Vec<N>> where
M: ClearVertices,
fn clear_vertices(&mut self)
[src]
fn clear_vertices(&mut self)
Clear all vertices from the mesh.
impl<M, N> Default for WithNormals<M, N> where
M: Default,
N: Default,
[src]
impl<M, N> Default for WithNormals<M, N> where
M: Default,
N: Default,
impl<M, N> Deref for WithNormals<M, N>
[src]
impl<M, N> Deref for WithNormals<M, N>
type Target = M
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<M, N> DerefMut for WithNormals<M, N>
[src]
impl<M, N> DerefMut for WithNormals<M, N>
Auto Trait Implementations
impl<M, N> Send for WithNormals<M, N> where
M: Send,
N: Send,
impl<M, N> Send for WithNormals<M, N> where
M: Send,
N: Send,
impl<M, N> Sync for WithNormals<M, N> where
M: Sync,
N: Sync,
impl<M, N> Sync for WithNormals<M, N> where
M: Sync,
N: Sync,