hexglobe 0.1.3

Library to generate hexagonal tessellations of a sphere quickly and accurately.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Helper struct to store a triangle with vertices of any abstract type.
#[derive(Clone, Hash, PartialEq, Eq, Debug)]
pub struct Triangle<T: Clone> {
    pub u: T,
    pub v: T,
    pub w: T
}

impl<T: Clone> Triangle<T> {
    pub const fn new(u: T, v: T, w: T) -> Self {
        Self { u, v, w }
    }
}