AABB

Trait AABB 

Source
pub trait AABB: Copy {
    type V2: Vec2;

    // Required methods
    fn ll(&self) -> Self::V2;
    fn ur(&self) -> Self::V2;

    // Provided method
    fn intersects(&self, b: &Self) -> bool { ... }
}

Required Associated Types§

Required Methods§

Source

fn ll(&self) -> Self::V2

Source

fn ur(&self) -> Self::V2

Provided Methods§

Source

fn intersects(&self, b: &Self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§