Skip to main content

Spatial

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§