org.openmali.vecmath2.pools
Class Vector3dPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Vector3d>
      extended by org.openmali.vecmath2.pools.Vector3dPool

public class Vector3dPool
extends ObjectPool<Vector3d>

An instance pool for Vector3d instances.


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

Vector3dPool

public Vector3dPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Vector3d alloc()

Overrides:
alloc in class ObjectPool<Vector3d>

alloc

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