java.lang.Object
java.lang.Enum<Simplex2DVariant>
de.articdive.jnoise.generators.noise_parameters.simplex_variants.Simplex2DVariant
All Implemented Interfaces:
Serializable, Comparable<Simplex2DVariant>, Constable

public enum Simplex2DVariant extends Enum<Simplex2DVariant>
Enum representing the different variants of 2D OpenSimplex2 noise.
  • Enum Constant Details

    • CLASSIC

      public static final Simplex2DVariant CLASSIC
      2D OpenSimplex2 noise, standard lattice orientation.
    • IMPROVE_X

      public static final Simplex2DVariant IMPROVE_X
      2D OpenSimplex2 noise, with Y pointing down the main diagonal. Might be better for a 2D sandbox style game, where Y is vertical. Probably slightly less optimal for heightmaps or continent maps, unless your map is centered around an equator. It's a slight difference, but the option is here to make it easy.
  • Method Details

    • values

      public static Simplex2DVariant[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Simplex2DVariant valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null