INoiseFunctionOps

Description

interface Tinman.Terrain.Procedural.INoiseFunctionOps
<TValue val : IEquatable<TValue>>
<TNoise out ref : INoiseFunction<TValue>>

Defines operations that can be performed on noise functions.

Public / Methods

Linear


[Pure]
public method Linear → (2)

scale in : TValue

Linear coefficient of output transform.

offset in : TValue

Linear coefficient of output transform.

returns → TNoise

The resulting noise function.

Applies a linear transformation on the output value of this noise function.

result = noise * scale + offset

where noise is this noise function and result is the returned noise function.

Simplify


[Pure]
public method Simplify → ()

returns → TNoise

The simplified noise function or this.

Simplifies this noise function, if possible.

Transform


[Pure]
public method Transform → (1)

function in : IVectorFunction

[not-null]
The vector function to use for transforming the input coordinates.

returns → TNoise

The resulting noise function.

Transforms the input coordinates using the given vector function before plugging them into this noise function.