org.openmali.vecmath2.pools
Class Tuple3dPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Tuple3d>
      extended by org.openmali.vecmath2.pools.Tuple3dPool

public class Tuple3dPool
extends ObjectPool<Tuple3d>

An instance pool for Tuple3d instances.


Constructor Summary
Tuple3dPool(int initialSize)
           
 
Method Summary
 Tuple3d alloc()
          
 Tuple3d alloc(double x, double y, double z)
           
protected  Tuple3d 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

Tuple3dPool

public Tuple3dPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Tuple3d alloc()

Overrides:
alloc in class ObjectPool<Tuple3d>

alloc

public Tuple3d alloc(double x,
                     double y,
                     double z)