public class NormalizationUtil extends Object
Constructor and Description |
---|
NormalizationUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
normalize(double d,
int num,
int octaves)
Normalize a double d to a value from zero to num.
This assumes that the value d was generated by a FastNoiseLite instance using SimplexFractal noise type with 4 Octaves. |
public static int normalize(double d, int num, int octaves)
d
- The value to be normalized.num
- The maximum value.Copyright © 2020. All rights reserved.