public class FloatBackingBuffer extends Object implements MatrixBackingBuffer, Cloneable
FloatBuffer internally.| Constructor and Description |
|---|
FloatBackingBuffer(boolean direct)
Creates the backing buffer without actually creating the internal data structure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
allocate(int size)
Allocates the internal data structure.
|
Object |
clone() |
float |
get(int index)
Reads a value.
|
boolean |
isAllocated()
Indicates whether the internal data structure is already allocated.
|
void |
set(int index,
float value)
Write a value.
|
public FloatBackingBuffer(boolean direct)
direct - should the underlying FloatBuffer be native/direct or not?allocate(int)public void allocate(int size)
MatrixBackingBufferallocate in interface MatrixBackingBuffersize - sizepublic boolean isAllocated()
MatrixBackingBufferisAllocated in interface MatrixBackingBufferpublic void set(int index,
float value)
MatrixBackingBufferset in interface MatrixBackingBufferindex - indexvalue - valuepublic float get(int index)
MatrixBackingBufferget in interface MatrixBackingBufferindex - indexpublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.