[][src]Struct amethyst_tiles::iters::MortonRegion

pub struct MortonRegion { /* fields omitted */ }

Axis aligned quantized region of space represented in tile coordinates of u32. This behaves like a bounding box volume with min and max coordinates for iteration. This regions limits are inclusive, in that it considers both min and max values as being inside the region.

The values of this region are stored and computed as morton values instead of Vector3 values, allowing for fast BMI2 instrinsic use for iteration and comparison.


impl MortonRegion[src]

#[must_use]pub fn new(min: u32, max: u32) -> Self[src]

Create a new MortonRegion region.

#[must_use]pub fn contains(self, morton: u32) -> bool[src]

Check if this MortonRegion contains a given morton coordinate.

Trait Implementations

impl Clone for MortonRegion[src]

impl Copy for MortonRegion[src]

impl Debug for MortonRegion[src]

impl Default for MortonRegion[src]

impl Eq for MortonRegion[src]

impl<'a> From<&'a Region> for MortonRegion[src]

impl From<Region> for MortonRegion[src]

impl Hash for MortonRegion[src]

impl Ord for MortonRegion[src]

impl PartialEq<MortonRegion> for MortonRegion[src]

impl PartialOrd<MortonRegion> for MortonRegion[src]

impl StructuralEq for MortonRegion[src]

impl StructuralPartialEq for MortonRegion[src]

Auto Trait Implementations

impl RefUnwindSafe for MortonRegion

impl Send for MortonRegion

impl Sync for MortonRegion

impl Unpin for MortonRegion

impl UnwindSafe for MortonRegion

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Clone for T where
    T: Clone

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Supports<T> for T

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,