rene 0.2.0

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

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

use super::types::Multisegment;

impl<Scalar> PartialEq for Multisegment<Scalar>
where
    Segment<Scalar>: Hash + Eq,
{
    fn eq(&self, other: &Self) -> bool {
        contracts::are_unique_hashable_sequences_permutationally_equivalent(
            &self.segments,
            &other.segments,
        )
    }
}