Package fr.rodofire.ewc.util
Enum Class FastNoiseLite.CellularReturnType
java.lang.Object
java.lang.Enum<FastNoiseLite.CellularReturnType>
fr.rodofire.ewc.util.FastNoiseLite.CellularReturnType
- All Implemented Interfaces:
Serializable,Comparable<FastNoiseLite.CellularReturnType>,Constable
- Enclosing class:
FastNoiseLite
Represents the return types for cellular noise calculations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturns the cell value itself.Returns the distance to the nearest cell.Returns the distance to the second-nearest cell.Adds the distances to the first and second-nearest cells.Divides the nearest distance by the second-nearest distance.Multiplies the distances to the first and second-nearest cells.Subtracts the second-nearest distance from the nearest. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static FastNoiseLite.CellularReturnType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CellValue
Returns the cell value itself. -
Distance
Returns the distance to the nearest cell. -
Distance2
Returns the distance to the second-nearest cell. -
Distance2Add
Adds the distances to the first and second-nearest cells. -
Distance2Sub
Subtracts the second-nearest distance from the nearest. -
Distance2Mul
Multiplies the distances to the first and second-nearest cells. -
Distance2Div
Divides the nearest distance by the second-nearest distance.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-