pub struct UnorientedQuad {
pub minimum: [u32; 3],
pub width: u32,
pub height: u32,
}
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§
Source§impl Clone for UnorientedQuad
impl Clone for UnorientedQuad
Source§fn clone(&self) -> UnorientedQuad
fn clone(&self) -> UnorientedQuad
Returns a duplicate 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 UnorientedQuad
impl Debug for UnorientedQuad
Source§impl From<UnorientedUnitQuad> for UnorientedQuad
impl From<UnorientedUnitQuad> for UnorientedQuad
Source§fn from(unit: UnorientedUnitQuad) -> Self
fn from(unit: UnorientedUnitQuad) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnorientedQuad
impl PartialEq for UnorientedQuad
impl Copy for UnorientedQuad
impl Eq for UnorientedQuad
impl StructuralPartialEq for UnorientedQuad
Auto Trait Implementations§
impl Freeze for UnorientedQuad
impl RefUnwindSafe for UnorientedQuad
impl Send for UnorientedQuad
impl Sync for UnorientedQuad
impl Unpin for UnorientedQuad
impl UnwindSafe for UnorientedQuad
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more