plottery_lib 0.14.0

Core geometry library of Plottery, a creative coding framework for generative vector graphics and pen plotting.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg(test)]
mod test_random {
    use crate::{rand_index, rand_sign};

    #[test]
    fn sign_and_index() {
        for _ in 0..100 {
            assert!(rand_sign().abs() == 1.0);
            assert!(rand_index(3) < 3);
        }
        assert_eq!(rand_index(1), 0);
    }
}