logo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use num_traits::Zero;

mod convert;
mod dim2;
mod projection;
#[cfg(feature = "wolfram_wxf")]
mod wolfram;

pub trait Distance<T, RHS> {
    fn distance_to(&self, other: &RHS) -> T;
}

pub trait ValidShape<T>
where
    T: Zero,
{
    fn is_empty(&self) -> bool {
        self.is_empty_under_thousand(T::zero())
    }
    fn is_empty_under_thousand(&self, thousand: T) -> bool;
}

pub trait EqualThousand<T> {
    fn eq_under_thousand(&self, thousand: T) -> bool;
}

pub trait Area<T> {
    fn area(&self) -> T;
}