pub struct Turn {
pub origin: [f32; 3],
pub axis: usize,
pub degrees: f32,
pub rescale: bool,
}Expand description
A turn of a box about axis (0 x, 1 y, 2 z) through origin
(sixteenths of a block), degrees counter-clockwise looking down the
axis; rescale stretches the turned box’s other axes back to the block
(an element’s rescale).
Fields§
§origin: [f32; 3]§axis: usize§degrees: f32§rescale: boolTrait Implementations§
impl Copy for Turn
impl StructuralPartialEq for Turn
Auto Trait Implementations§
impl Freeze for Turn
impl RefUnwindSafe for Turn
impl Send for Turn
impl Sync for Turn
impl Unpin for Turn
impl UnsafeUnpin for Turn
impl UnwindSafe for Turn
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