OpenSimplex2S class
K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex").
- 2D is standard simplex, modified to support larger kernels. Implemented using a lookup table.
- 3D is "Re-oriented 8-point BCC noise" which constructs a congruent BCC lattice in a much different way than usual.
- 4D uses a naïve pregenerated lookup table, and averages out to the expected performance.
Multiple versions of each function are provided. See the documentation above each, for more info.
- Implemented types
Constructors
- OpenSimplex2S(int seed)
- Creates a seeded OpenSimplex2S that can be used to evaluate noise.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noise2(
double x, double y) → double -
2D SuperSimplex noise, standard lattice orientation.
override
-
noise2XBeforeY(
double x, double y) → double -
2D SuperSimplex noise, with Y pointing down the main diagonal.
override
-
noise3Classic(
double x, double y, double z) → double -
3D Re-oriented 8-point BCC noise, classic orientation.
override
-
noise3XYBeforeZ(
double x, double y, double z) → double -
3D Re-oriented 8-point BCC noise, with better visual isotropy in (X, Y).
override
-
noise3XZBeforeY(
double x, double y, double z) → double -
3D Re-oriented 8-point BCC noise, with better visual isotropy in (X, Z).
override
-
noise4Classic(
double x, double y, double z, double w) → double -
4D SuperSimplex noise, classic lattice orientation.
override
-
noise4XYBeforeZW(
double x, double y, double z, double w) → double -
4D SuperSimplex noise, with XY and ZW forming orthogonal triangular-based planes.
override
-
noise4XYZBeforeW(
double x, double y, double z, double w) → double -
4D SuperSimplex noise, with XYZ oriented like noise3Classic,
and W for an extra degree of freedom.
override
-
noise4XZBeforeYW(
double x, double y, double z, double w) → double -
4D SuperSimplex noise, with XZ and YW forming orthogonal triangular-based planes.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited