poincare-lib 0.4.0

GPU-accelerated 3D plotting library for mathematical functions and scientific visualisation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Mesh sampling resolution for evaluating plot functions on a grid.
///
/// `u` samples along the first axis, `v` along the second.
/// Default 100×100 gives smooth surfaces for typical analytical functions.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct Resolution {
    pub u: u32,
    pub v: u32,
}

impl Default for Resolution {
    fn default() -> Self {
        Self { u: 100, v: 100 }
    }
}