pub enum AxisPermutation {
Xyz,
Zxy,
Yzx,
Zyx,
Xzy,
Yxz,
}Expand description
One of the six possible {N, U, V} –> {X, Y, Z} mappings.
This can be combined with a -1 or +1 sign for the Normal axis to
make an OrientedBlockFace.
See the geometry module documentation for more
information on {N, U, V} space.
§Even and Odd
Even permutations:
Odd permutations:
Variants§
Implementations§
Source§impl AxisPermutation
impl AxisPermutation
pub const fn even_with_normal_axis(axis: Axis) -> Self
pub const fn odd_with_normal_axis(axis: Axis) -> Self
pub const fn sign(&self) -> i32
Trait Implementations§
Source§impl Clone for AxisPermutation
impl Clone for AxisPermutation
Source§fn clone(&self) -> AxisPermutation
fn clone(&self) -> AxisPermutation
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 AxisPermutation
impl Debug for AxisPermutation
Source§impl PartialEq for AxisPermutation
impl PartialEq for AxisPermutation
impl Copy for AxisPermutation
impl Eq for AxisPermutation
impl StructuralPartialEq for AxisPermutation
Auto Trait Implementations§
impl Freeze for AxisPermutation
impl RefUnwindSafe for AxisPermutation
impl Send for AxisPermutation
impl Sync for AxisPermutation
impl Unpin for AxisPermutation
impl UnwindSafe for AxisPermutation
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