pub enum PointIntersection {
One(Vec2),
Two(Vec2, Vec2),
}Expand description
The intersection point(s) of two shapes.
Variants§
Implementations§
Trait Implementations§
Source§impl Intersect<Circle, PointIntersection> for Circle
impl Intersect<Circle, PointIntersection> for Circle
Source§fn intersects(&self, other: &Circle) -> bool
fn intersects(&self, other: &Circle) -> bool
Returns true if the two shapes intersect.
Source§fn intersection(&self, _other: &Circle) -> Option<PointIntersection>
fn intersection(&self, _other: &Circle) -> Option<PointIntersection>
Returns the intersection of the two shapes.
Source§impl Intersect<Circle, PointIntersection> for Line2
impl Intersect<Circle, PointIntersection> for Line2
Source§fn intersects(&self, circle: &Circle) -> bool
fn intersects(&self, circle: &Circle) -> bool
Returns true if the two shapes intersect.
Source§fn intersection(&self, _other: &Circle) -> Option<PointIntersection>
fn intersection(&self, _other: &Circle) -> Option<PointIntersection>
Returns the intersection of the two shapes.
Source§impl Intersect<Line2, PointIntersection> for Circle
impl Intersect<Line2, PointIntersection> for Circle
Source§fn intersects(&self, other: &Line2) -> bool
fn intersects(&self, other: &Line2) -> bool
Returns true if the two shapes intersect.
Source§fn intersection(&self, other: &Line2) -> Option<PointIntersection>
fn intersection(&self, other: &Line2) -> Option<PointIntersection>
Returns the intersection of the two shapes.
Source§impl Intersect<Line2, PointIntersection> for Rect
impl Intersect<Line2, PointIntersection> for Rect
Source§fn intersects(&self, other: &Line2) -> bool
fn intersects(&self, other: &Line2) -> bool
Returns true if the two shapes intersect.
Source§fn intersection(&self, other: &Line2) -> Option<PointIntersection>
fn intersection(&self, other: &Line2) -> Option<PointIntersection>
Returns the intersection of the two shapes.
Source§impl Intersect<Rect, PointIntersection> for Line2
impl Intersect<Rect, PointIntersection> for Line2
Source§fn intersects(&self, other: &Rect) -> bool
fn intersects(&self, other: &Rect) -> bool
Returns true if the two shapes intersect.
Source§fn intersection(&self, other: &Rect) -> Option<PointIntersection>
fn intersection(&self, other: &Rect) -> Option<PointIntersection>
Returns the intersection of the two shapes.
Auto Trait Implementations§
impl Freeze for PointIntersection
impl RefUnwindSafe for PointIntersection
impl Send for PointIntersection
impl Sync for PointIntersection
impl Unpin for PointIntersection
impl UnwindSafe for PointIntersection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more