OpenSimplex2F class Null safety

K.jpg's OpenSimplex 2, faster variant.

  • 2D is standard simplex implemented using a lookup table.
  • 3D is "Re-oriented 4-point BCC noise" which constructs a congruent BCC lattice in a much different way than usual.
  • 4D constructs the lattice as a union of five copies of its reciprocal. It successively finds the closest point on each.

Multiple versions of each function are provided. See the documentation for each for more info.

Implemented types

Constructors

OpenSimplex2F(int seed)
Creates a seeded OpenSimplex2F that can be used to evaluate noise.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noise2(double x, double y) double
2D Simplex noise, standard lattice orientation.
override
noise2XBeforeY(double x, double y) double
2D Simplex noise, with Y pointing down the main diagonal. [...]
override
noise3Classic(double x, double y, double z) double
3D Re-oriented 4-point BCC noise, classic orientation. [...]
override
noise3XYBeforeZ(double x, double y, double z) double
3D Re-oriented 4-point BCC noise, with better visual isotropy in (X, Y). [...]
override
noise3XZBeforeY(double x, double y, double z) double
3D Re-oriented 4-point BCC noise, with better visual isotropy in (X, Z). [...]
override
noise4Classic(double x, double y, double z, double w) double
4D OpenSimplex2F noise, classic lattice orientation.
override
noise4XYBeforeZW(double x, double y, double z, double w) double
4D OpenSimplex2F noise, with XY and ZW forming orthogonal triangular-based planes. [...]
override
noise4XYZBeforeW(double x, double y, double z, double w) double
4D OpenSimplex2F noise, with XYZ oriented like noise3Classic, and W for an extra degree of freedom. W repeats eventually. [...]
override
noise4XZBeforeYW(double x, double y, double z, double w) double
4D OpenSimplex2F noise, with XZ and YW forming orthogonal triangular-based planes. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited