dungen_minion_geometry 0.3.2

Geometry support for dungen_minion.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// External includes.

// Standard includes.

// Internal includes.
use super::{Position, Shape};

/// Defines an intersection operation between this instance and a [`Shape`](trait.Shape.html) at a specific [`Position`](struct.Position.html).
pub trait IntersectsShape {
    /// Returns true if the given 'Shape' at the given `Position` offset is within the boundaries of this instance.
    fn intersects_shape(&self, other_offset: &Position, other_shape: &dyn Shape) -> bool;
}