org.openmali.vecmath2.pools
Class Tuple3fPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Tuple3f>
      extended by org.openmali.vecmath2.pools.Tuple3fPool

public class Tuple3fPool
extends ObjectPool<Tuple3f>

An instance pool for Tuple3f instances.


Constructor Summary
Tuple3fPool(int initialSize)
           
 
Method Summary
 Tuple3f alloc()
          
 Tuple3f alloc(float x, float y, float z)
           
protected  Tuple3f 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

Tuple3fPool

public Tuple3fPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Tuple3f alloc()

Overrides:
alloc in class ObjectPool<Tuple3f>

alloc

public Tuple3f alloc(float x,
                     float y,
                     float z)