public class CompactQuaternionArray extends CompactArray<Quaternion> implements Savable
Quaternion
[] by indexing same values
It is converted to float[]array, index, indexPool
Constructor and Description |
---|
CompactQuaternionArray()
creates a compact Quaternion array
|
CompactQuaternionArray(float[] dataArray,
int[] index)
creates a compact Quaternion array
|
Modifier and Type | Method and Description |
---|---|
protected Quaternion |
deserialize(int i,
Quaternion store)
deserialize object
|
protected java.lang.Class<Quaternion> |
getElementClass() |
protected int |
getTupleSize()
serialized size of one object element
|
void |
read(JmeImporter im) |
protected void |
serialize(int i,
Quaternion store)
serialize object
|
void |
write(JmeExporter ex) |
add, clone, cloneFields, ensureCapacity, freeze, get, getCompactIndex, getCompactObjectSize, getIndex, getSerializedData, getSerializedSize, getTotalObjectSize, jmeClone, serialize, set, setInvalid, toObjectArray
public CompactQuaternionArray()
public CompactQuaternionArray(float[] dataArray, int[] index)
dataArray
- the data arrayindex
- the indices arrayprotected final int getTupleSize()
CompactArray
getTupleSize
in class CompactArray<Quaternion>
protected final java.lang.Class<Quaternion> getElementClass()
getElementClass
in class CompactArray<Quaternion>
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
protected void serialize(int i, Quaternion store)
CompactArray
serialize
in class CompactArray<Quaternion>
i
- compacted object indexprotected Quaternion deserialize(int i, Quaternion store)
CompactArray
deserialize
in class CompactArray<Quaternion>
i
- compacted object index