IScalarFunction
Description
- Derived from
- Extended by
-
ScalarFunction abstract
Base interface for classes that compute procedural scalar (i.e. 1D) noise values.
Public / Methods
Abs
Returns a noise function that returns the absolute value of this function.
result = | this | out : [>=0]
Add
Returns a noise function that sums the noise values of the given function and this one.
result = this + function
Atan
Returns a noise function that computes the arc-tangent of the noise values returned by this noise function.
result = atan(this) out : [-90..90] degrees
Clamp
Returns a noise function that clamps the noise values returned by this function to the specified number range.
Div
Returns a noise function that divides the noise values returned by this function by the noise values returned by the given noise function.
result := this / function
Log
Returns a noise function that computes the logarithm base 10 of the noise values returned by this noise function.
result = log10(this) in : [>0]
Max
Returns a noise function that returns the maximum of the noise values returned by this noise function and the noise values returned by the given noise function.
result := max(this, function)
Min
Returns a noise function that returns the minimum of the noise values returned by this noise function and the noise values returned by the given noise function.
result := min(this, function)
Mul
Returns a noise function that multiplies the noise values returned by this noise function with the noise values returned by the given noise function.
result := this * function
NaN
Returns a noise function that replaces bad number values produced by this noise function with the given values.
Neg
Returns a noise function that negates the values returned by this noise function.
result := -this
Pow
Returns a noise function that raises the noise values returned by this noise function to the power values returned by the given noise function.
result := this ^ function
Recip
Returns a noise function that computes the reciprocal of the values returned by this noise function.
result := 1 / this
Sin
Returns a noise function that computes the sine of the noise values returned by this noise function.
result = sin(this) in : angle in degrees out : [-1..1]
Spline
Returns a noise function that maps the noise values returned by this noise function onto the given curve.
The given curve is assumed to be 1D, so only the X-coordinate is used. The noise values computed by this function are used as control point indices (see ICurve.Compute1D).
Sqr
Returns a noise function that computes the square value of the noise values returned by this noise function.
result := this ^ 2
Extensions
Add
Returns a noise function that adds the given scalar value to the noise values returned by this function.
result := this + value
Clamp
Returns a noise function that clamps the noise values returned by this function to the specified number range.
ColorRamp
Returns a noise function that computes color values from noise values using the given color ramp.
Div
Returns a noise function that divides the noise values returned by this function by the given scalar value.
result := this / value
DivInv
Returns a noise function that divides the given scalar value by the noise values returned by this noise function.
result := value / this
Max
Returns a noise function that returns the maximum of the given scalar value and the noise values returned by this noise function.
result := max(this, value)
Min
Returns a noise function that returns the minimum of the given scalar value and the noise values returned by this noise function.
result := min(this, value)
Mul
Returns a noise function that multiplies the noise values returned by this noise function with the given scalar value.
result := this * value
Op
2 overloads
Applies the given function operator to this noise function and the given one (for binary operators only).
Applies the given function operator to this noise function and the given scalar value (for binary operators only).
Pow
Returns a noise function that raises the noise values returned by this noise function to the given power.
result := this ^ value
PowInv
Returns a noise function that raises the given scalar value to the power of the noise values returned by this noise function.
result := value ^ this
Select
2 overloads
Returns a noise function that blends between this noise function and the given one using a third blend factor noise function.
Returns a noise function that blends between this noise function and the given one using a third blend factor noise function.
Sub
Returns a noise function that subtracts the given scalar value from the noise values returned by this noise function.
result := this - value