Trait Spatial

Source
pub trait Spatial<S> {
    // Required method
    fn aabb(&self) -> TypedRect<f32, S>;
}
Expand description

An object that has a bounding box.

Implementing this trait is not required, but can make insertions easier.

Required Methods§

Source

fn aabb(&self) -> TypedRect<f32, S>

Returns the boudning box for the object.

Implementations on Foreign Types§

Source§

impl<S> Spatial<S> for TypedPoint2D<f32, S>

Source§

fn aabb(&self) -> TypedRect<f32, S>

Source§

impl<S> Spatial<S> for TypedRect<f32, S>

Source§

fn aabb(&self) -> TypedRect<f32, S>

Implementors§