jagua_rs::geometry::geo_traits

Trait AlmostCollidesWith

Source
pub trait AlmostCollidesWith<T> {
    // Required method
    fn almost_collides_with(&self, other: &T) -> bool;
}
Expand description

Trait for types that can detect almost-collisions between itself and an object from type T. Useful in situations where fp arithmetic precision could be problematic. Should be implemented to lean towards false positives rather than false negatives.

Required Methods§

Source

fn almost_collides_with(&self, other: &T) -> bool

Implementors§