rene 0.2.0

Computational geometry.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::hash::Hash;

use crate::geometries::{contracts, Contour};

use super::types::Polygon;

impl<Scalar> PartialEq for Polygon<Scalar>
where
    Contour<Scalar>: Eq + Hash,
{
    fn eq(&self, other: &Self) -> bool {
        self.border == other.border
            && contracts::are_unique_hashable_sequences_permutationally_equivalent(
                &self.holes,
                &other.holes,
            )
    }
}