[][src]Struct arcs::components::SpatialEntity

pub struct SpatialEntity {
    pub bounds: BoundingBox,
    pub entity: Entity,
}

A intermediate struct that maps an Entity to its BoundingBox

This is used to populate an efficient spatial lookup structure like a QuadTree

Fields

bounds: BoundingBoxentity: Entity

Methods

impl SpatialEntity[src]

pub fn new(bounds: BoundingBox, entity: Entity) -> SpatialEntity[src]

Trait Implementations

impl Clone for SpatialEntity[src]

impl Copy for SpatialEntity[src]

impl Debug for SpatialEntity[src]

impl Spatial<f64> for SpatialEntity[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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>, 
[src]

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

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

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.