[][src]Trait rustbatch::math::Intersection

pub trait Intersection<T> {
    fn intersects(&self, o: &T) -> bool;
}

Trait for implementing intersects method witch returns whether two geometric objects has at least one common point

Required methods

fn intersects(&self, o: &T) -> bool

Loading content...

Implementors

impl Intersection<Circ> for Circ[src]

impl Intersection<Circ> for Ray[src]

impl Intersection<Circ> for Rect[src]

fn intersects(&self, o: &Circ) -> bool[src]

returns whether rectangle intersects circle

impl Intersection<Ray> for Circ[src]

impl Intersection<Ray> for Ray[src]

impl Intersection<Ray> for Rect[src]

fn intersects(&self, o: &Ray) -> bool[src]

returns whether rectangle intersects ray

impl Intersection<Rect> for Circ[src]

impl Intersection<Rect> for Ray[src]

impl Intersection<Rect> for Rect[src]

fn intersects(&self, o: &Rect) -> bool[src]

returns whether rectangle intersects another rectangle

Loading content...