jwars.model.map.generator
Class FloatBuffer
- public class FloatBuffer
q w
q w
e r
r t
y u i o
scaleToFitStrict
public void scaleToFitStrict(float min,
float max)
- Distributes the values in this FloatBuffer such that the smallest value is min and the largest is max. This method guarantees that no element exceeds the boundaries.
- Parameters:
min
- float
max
- float
scaleToFit
public void scaleToFit(float min,
float max)
- Distributes the values in this FloatBuffer such that the smallest value is min and the largest is max. The extrema of this FloatBuffer may slightly exceed the boundaries due to non-exact floating point precision.
- Parameters:
min
- float
max
- float
smoothify
public void smoothify()
- Traverses all non-boundary elements of this FloatBuffer and sets them to the average of their neighbours.
display
public void display()
- For debugging