tilezz 0.0.1

Utilities to work with perfect-precision polygonal tiles built on top of complex integer rings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::snake::Snake;
use crate::zzbase::ZZNum;

pub struct Rat<T: ZZNum> {
    pub snake: Snake<T>,
}

impl<T: ZZNum> Rat<T> {
    pub fn new(snake: Snake<T>) -> Self {
        assert!(snake.is_rat());
        Self { snake: snake }
    }
}