micro_games_kit::pcg

Trait GridGenetator

Source
pub trait GridGenetator<T: Copy> {
    // Required method
    fn generate(
        &mut self,
        location: Vec2<usize>,
        size: Vec2<usize>,
        current: T,
        grid: &Grid<T>,
    ) -> T;
}

Required Methods§

Source

fn generate( &mut self, location: Vec2<usize>, size: Vec2<usize>, current: T, grid: &Grid<T>, ) -> T

Implementors§

Source§

impl<'a, T: Copy + PartialOrd + Default> GridGenetator<T> for ThresholdGenerator<'a, T>

Source§

impl<'a, T: Copy + Add<Output = T> + Default> GridGenetator<T> for AddGenerator<'a, T>

Source§

impl<'a, T: Copy + Add<Output = T> + Default> GridGenetator<T> for CopyGenerator<'a, T>

Source§

impl<'a, T: Copy + Add<Output = T> + Mul<Output = T> + Default> GridGenetator<T> for Kernel33Generator<'a, T>

Source§

impl<'a, T: Copy + Div<Output = T> + Ord + Default> GridGenetator<T> for MaxGenerator<'a, T>

Source§

impl<'a, T: Copy + Div<Output = T> + Ord + Default> GridGenetator<T> for MinGenerator<'a, T>

Source§

impl<'a, T: Copy + Div<Output = T> + Default> GridGenetator<T> for DivGenerator<'a, T>

Source§

impl<'a, T: Copy + Mul<Output = T> + Default> GridGenetator<T> for MulGenerator<'a, T>

Source§

impl<'a, T: Copy + Sub<Output = T> + Default> GridGenetator<T> for SubGenerator<'a, T>

Source§

impl<'a, T: Copy> GridGenetator<T> for OffsetLocationGenerator<'a, T>

Source§

impl<T: Copy + Ord + Default> GridGenetator<T> for ClampGenerator<T>

Source§

impl<T: Copy + Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Div<Output = T>> GridGenetator<T> for RemapGenerator<T>

Source§

impl<T: Copy> GridGenetator<T> for ConstGenerator<T>

Source§

impl<T: Copy, F: FnMut(Vec2<usize>, Vec2<usize>, T) -> T> GridGenetator<T> for F

Source§

impl<T: NoiseFn<f64, 2>> GridGenetator<f64> for NoiseGenerator<T>