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
vertex: V
normal: N
Trait Implementations
impl<V: Copy, N: Copy> Copy for WithNormal<V, N>
[src]
impl<V: Copy, N: Copy> Copy for WithNormal<V, N>
impl<V: Clone, N: Clone> Clone for WithNormal<V, N>
[src]
impl<V: Clone, N: Clone> Clone for WithNormal<V, N>
fn clone(&self) -> WithNormal<V, N>
[src]
fn clone(&self) -> WithNormal<V, 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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<V: Debug, N: Debug> Debug for WithNormal<V, N>
[src]
impl<V: Debug, N: Debug> Debug for WithNormal<V, 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<V: Default, N: Default> Default for WithNormal<V, N>
[src]
impl<V: Default, N: Default> Default for WithNormal<V, N>
fn default() -> WithNormal<V, N>
[src]
fn default() -> WithNormal<V, N>
Returns the "default value" for a type. Read more
impl<V: PartialEq, N: PartialEq> PartialEq for WithNormal<V, N>
[src]
impl<V: PartialEq, N: PartialEq> PartialEq for WithNormal<V, N>
fn eq(&self, other: &WithNormal<V, N>) -> bool
[src]
fn eq(&self, other: &WithNormal<V, N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &WithNormal<V, N>) -> bool
[src]
fn ne(&self, other: &WithNormal<V, N>) -> bool
This method tests for !=
.
impl<S, V, N> ApplyTransform<S> for WithNormal<V, N> where
V: ApplyTransform<S>,
S: BaseFloat,
[src]
impl<S, V, N> ApplyTransform<S> for WithNormal<V, N> where
V: ApplyTransform<S>,
S: BaseFloat,
fn apply_transform(self, _transform: &PreparedTransform<S>) -> Self
[src]
fn apply_transform(self, _transform: &PreparedTransform<S>) -> Self
Apply the given transform and return the result.
impl<V, N> Deref for WithNormal<V, N>
[src]
impl<V, N> Deref for WithNormal<V, N>
type Target = V
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<V, N> DerefMut for WithNormal<V, N>
[src]
impl<V, N> DerefMut for WithNormal<V, N>
impl<V, N> Vertex for WithNormal<V, N> where
V: Vertex,
N: Clone + Copy + PartialEq,
[src]
impl<V, N> Vertex for WithNormal<V, N> where
V: Vertex,
N: Clone + Copy + PartialEq,
impl<V, N> Vertex2d for WithNormal<V, N> where
V: Vertex2d,
Self: Vertex<Scalar = V::Scalar>,
[src]
impl<V, N> Vertex2d for WithNormal<V, N> where
V: Vertex2d,
Self: Vertex<Scalar = V::Scalar>,
impl<V, N> Vertex3d for WithNormal<V, N> where
V: Vertex3d,
Self: Vertex<Scalar = V::Scalar>,
[src]
impl<V, N> Vertex3d for WithNormal<V, N> where
V: Vertex3d,
Self: Vertex<Scalar = V::Scalar>,
impl<A, V, N> From<(A, N)> for WithNormal<V, N> where
A: Into<V>,
[src]
impl<A, V, N> From<(A, N)> for WithNormal<V, N> where
A: Into<V>,
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
Auto Trait Implementations
impl<V, N> Send for WithNormal<V, N> where
N: Send,
V: Send,
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,
impl<V, N> Sync for WithNormal<V, N> where
N: Sync,
V: Sync,