public class SparseFloatArray extends Object
| Constructor and Description |
|---|
SparseFloatArray(float[] floats)
Good for saving memory with sparse float arrays, when those arrays no longer need to be mutable.
|
SparseFloatArray(int capacity)
Short-cut to quickly create a sparse float array representing
this(new float[capacity]);, but without reading through said array. |
public SparseFloatArray(float[] floats)
floats - public SparseFloatArray(int capacity)
this(new float[capacity]);, but without reading through said array.
The advantage here is that the constructor is lightning-fast in the case that
all values in the float array are known to
== 0f.
capacity - public float[] expand()
public float get(int idx)
Copyright © 2005–2013. All rights reserved.