org.openmali.vecmath2.pools
Class Quaternion4fPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Quaternion4f>
      extended by org.openmali.vecmath2.pools.Quaternion4fPool

public class Quaternion4fPool
extends ObjectPool<Quaternion4f>

An instance pool for Quaternion4f instances.


Constructor Summary
Quaternion4fPool(int initialSize)
           
 
Method Summary
 Quaternion4f alloc()
          
 Quaternion4f alloc(float a, float b, float c, float d)
           
protected  Quaternion4f newInstance()
          Creates a new instance of a pooled object.
 
Methods inherited from class org.openmali.pooling.ObjectPool
free, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quaternion4fPool

public Quaternion4fPool(int initialSize)
Method Detail

newInstance

protected Quaternion4f newInstance()
Creates a new instance of a pooled object.

Specified by:
newInstance in class ObjectPool<Quaternion4f>
Returns:
the new object instance

alloc

public Quaternion4f alloc()

Overrides:
alloc in class ObjectPool<Quaternion4f>

alloc

public Quaternion4f alloc(float a,
                          float b,
                          float c,
                          float d)