rene 0.2.0

Computational geometry.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::geometries::Contour;

#[derive(Clone)]
pub struct Polygon<Scalar> {
    pub(super) border: Contour<Scalar>,
    pub(super) holes: Vec<Contour<Scalar>>,
}

impl<Scalar> Polygon<Scalar> {
    #[must_use]
    pub fn new(border: Contour<Scalar>, holes: Vec<Contour<Scalar>>) -> Self {
        Self { border, holes }
    }
}