Struct block_mesh::UnorientedQuad
source · [−]Expand description
The minimum voxel and size of a quad, without an orientation. To get the
actual corners of the quad, combine with an [OrientedBlockFace
].
When using these values for materials and lighting, you can access them
using either the quad’s minimum voxel coordinates or the vertex coordinates
given by OrientedBlockFace::quad_corners
.
Fields
minimum: [u32; 3]
The minimum voxel in the quad.
width: u32
Width of the quad.
height: u32
Height of the quad.
Trait Implementations
sourceimpl Clone for UnorientedQuad
impl Clone for UnorientedQuad
sourcefn clone(&self) -> UnorientedQuad
fn clone(&self) -> UnorientedQuad
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UnorientedQuad
impl Debug for UnorientedQuad
sourceimpl From<UnorientedUnitQuad> for UnorientedQuad
impl From<UnorientedUnitQuad> for UnorientedQuad
sourcefn from(unit: UnorientedUnitQuad) -> Self
fn from(unit: UnorientedUnitQuad) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<UnorientedQuad> for UnorientedQuad
impl PartialEq<UnorientedQuad> for UnorientedQuad
sourcefn eq(&self, other: &UnorientedQuad) -> bool
fn eq(&self, other: &UnorientedQuad) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UnorientedQuad) -> bool
fn ne(&self, other: &UnorientedQuad) -> bool
This method tests for !=
.
impl Copy for UnorientedQuad
impl Eq for UnorientedQuad
impl StructuralEq for UnorientedQuad
impl StructuralPartialEq for UnorientedQuad
Auto Trait Implementations
impl RefUnwindSafe for UnorientedQuad
impl Send for UnorientedQuad
impl Sync for UnorientedQuad
impl Unpin for UnorientedQuad
impl UnwindSafe for UnorientedQuad
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more