[][src]Trait gut::ops::Intersect

pub trait Intersect<RHS = Self> {
    type Output;
    fn intersect(self, rhs: RHS) -> Self::Output;
fn intersects(self, rhs: RHS) -> bool; }

Intersection trait, describes the intersection operation between two objects.

Associated Types

type Output

Loading content...

Required methods

fn intersect(self, rhs: RHS) -> Self::Output

Intersect on one object with another, producing the resulting intersection. For example if [-1, 2] and [0, 4] are two closed intervals, then their intersection is a closed interval [0, 2]. Note that the intersection object can be of a different type

fn intersects(self, rhs: RHS) -> bool

Check if this object intersects another.

Loading content...

Implementors

impl<T: Float> Intersect<BBox<T>> for BBox<T>[src]

type Output = Self

impl<T: Float> Intersect<ClosedInterval<T>> for ClosedInterval<T>[src]

type Output = Self

impl<T: Float> Intersect<OpenInterval<T>> for OpenInterval<T>[src]

type Output = Self

Loading content...