Struct dotrix_terrain::Generator[][src]

pub struct Generator {
    pub amplitude: f32,
    pub size: usize,
    pub noise_map: Option<Vec<f32>>,
    pub falloff_map: Option<Vec<f32>>,
}
Expand description

Terrain heights generator from Pelin noise

Fields

amplitude: f32

Amplitude of the heights generation

size: usize

Size of the heightmap

noise_map: Option<Vec<f32>>

Noisemap values

falloff_map: Option<Vec<f32>>

Falloff values

Trait Implementations

Returns the “default value” for a type. Read more

Returns Y axis value for specified X and Z pair

Returns number of values per map side

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Constructs wrapped service

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.