org.openmali.vecmath2.pools
Class Vector3fPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Vector3f>
      extended by org.openmali.vecmath2.pools.Vector3fPool

public class Vector3fPool
extends ObjectPool<Vector3f>

An instance pool for Vector3f instances.


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

Vector3fPool

public Vector3fPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Vector3f alloc()

Overrides:
alloc in class ObjectPool<Vector3f>

alloc

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