Enum tetra::graphics::mesh::VertexWinding
source · pub enum VertexWinding {
Clockwise,
CounterClockwise,
}
Expand description
The ordering of the vertices in a piece of geometry.
Variants§
Clockwise
The vertices are in clockwise order.
CounterClockwise
The vertices are in counter-clockwise order.
Implementations§
source§impl VertexWinding
impl VertexWinding
sourcepub fn flipped(self) -> VertexWinding
pub fn flipped(self) -> VertexWinding
Returns the opposite winding, compared to self
.
Trait Implementations§
source§impl Clone for VertexWinding
impl Clone for VertexWinding
source§fn clone(&self) -> VertexWinding
fn clone(&self) -> VertexWinding
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VertexWinding
impl Debug for VertexWinding
source§impl PartialEq<VertexWinding> for VertexWinding
impl PartialEq<VertexWinding> for VertexWinding
source§fn eq(&self, other: &VertexWinding) -> bool
fn eq(&self, other: &VertexWinding) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.