Struct voxel_worldgen::layer::LayerLCG
[−]
[src]
pub struct LayerLCG { /* fields omitted */ }
Methods
impl LayerLCG
[src]
fn new(base_seed: i64, world_seed: i64) -> LayerLCG
fn seed_world(&mut self, world_seed: i64)
Seed the LCG from the base seed and the world seed
fn world_seed(&self) -> i64
fn seed_pos(&mut self, x: i64, z: i64)
Seed the LCG from the current world seed and the position
fn next_int(&mut self, max: i32) -> i32
Next random number n from 0<=n<max
fn random_from_2<T>(&mut self, i1: T, i2: T) -> T
fn random_from_4<T>(&mut self, i1: T, i2: T, i3: T, i4: T) -> T
Trait Implementations
impl Clone for LayerLCG
[src]
fn clone(&self) -> LayerLCG
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more