Skip to main content

Geometry

Trait Geometry 

Source
pub trait Geometry<T: FloatIsh>: Centroid<T> {
    // Required methods
    fn contains(&self, point: &Point<T>) -> bool;
    fn distance_to(&self, point: &Point<T>) -> T;
    fn intersects(&self, point: &Point<T>) -> bool;
    fn bounding_rectangle(&self) -> Rectangle<T>;
}

Required Methods§

Source

fn contains(&self, point: &Point<T>) -> bool

Source

fn distance_to(&self, point: &Point<T>) -> T

Source

fn intersects(&self, point: &Point<T>) -> bool

Source

fn bounding_rectangle(&self) -> Rectangle<T>

Implementors§