Struct gemini_engine::elements3d::Grid3D
source · pub struct Grid3D {
pub transform: Transform3D,
pub cell_size: f64,
pub cell_count: usize,
pub fill_char: ColChar,
/* private fields */
}Expand description
A flat grid to display where the ground is
Fields§
§transform: Transform3D§cell_size: f64The length of each cell’s width and depth
cell_count: usizeThe number of cells alon each side. The total number of cells will be cell_count^2
fill_char: ColCharImplementations§
Trait Implementations§
source§impl ViewElement3D for Grid3D
impl ViewElement3D for Grid3D
source§fn get_transform(&self) -> Transform3D
fn get_transform(&self) -> Transform3D
This should return the object’s transform
source§fn get_vertices(&self) -> &[Vec3D]
fn get_vertices(&self) -> &[Vec3D]
This should return all of the object’s vertices
Auto Trait Implementations§
impl RefUnwindSafe for Grid3D
impl Send for Grid3D
impl Sync for Grid3D
impl Unpin for Grid3D
impl UnwindSafe for Grid3D
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