i_overlay 7.0.2

Boolean Operations for 2D Polygons: Supports intersection, union, difference, xor, and self-intersections for all polygon varieties.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use i_float::int::number::int::IntNumber;
use i_float::int::point::IntPoint;

#[derive(Clone, Copy)]
pub(crate) struct End<I: IntNumber> {
    pub(crate) index: usize,
    pub(crate) point: IntPoint<I>,
}

impl<I: IntNumber> Default for End<I> {
    #[inline(always)]
    fn default() -> Self {
        Self {
            index: 0,
            point: IntPoint::ZERO,
        }
    }
}