pub struct Cube {
pub position: Point3D,
pub faces: Vec<Face>,
/* private fields */
}Fields§
§position: Point3D§faces: Vec<Face>Implementations§
Source§impl Cube
impl Cube
pub fn new(position: (f32, f32, f32), rotation_y: f32, rotation_x: f32) -> Cube
pub fn update_side_map(&mut self)
pub fn rotate_x(&mut self, angle: f32)
pub fn rotate_y(&mut self, angle: f32)
pub fn rotate_z(&mut self, angle: f32)
pub fn apply_grid(&mut self, grid: &Grid)
pub fn translate_move(&self, cube_move: CubeMove) -> CubeMove
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cube
impl RefUnwindSafe for Cube
impl Send for Cube
impl Sync for Cube
impl Unpin for Cube
impl UnwindSafe for Cube
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