Interface FadeFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface marking the implementing class as a fade function for noise generation.
See here for more information
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FadeFunction
static final FadeFunction
static final FadeFunction
Deprecated.static final FadeFunction
static final FadeFunction
static final FadeFunction
static final FadeFunction
static final FadeFunction
Deprecated.UseCUBIC_POLY
static final FadeFunction
static final FadeFunction
-
Method Summary
Modifier and TypeMethodDescriptiondouble
fade
(double t) Specifies a value to fade, this is used to remove interpolation artefacts.
-
Field Details
-
NONE
-
CUBIC_POLY
-
SQUARTIC_POLY
-
QUINTIC_POLY
-
QUADRATIC_RATIONAL
-
CUBIC_RATIONAL
-
QUADRATIC_PIECEWISE
-
TRIGONOMETRIC
-
SMOOTHSTEP
Deprecated.UseCUBIC_POLY
-
IMPROVED_PERLIN_NOISE
Deprecated.UseQUINTIC_POLY
-
-
Method Details
-
fade
double fade(double t) Specifies a value to fade, this is used to remove interpolation artefacts.- Parameters:
t
- value (position) in the unit cube to fade.- Returns:
- the faded value at t.
-
QUINTIC_POLY