org.openmali.vecmath2.pools
Class Matrix3fPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Matrix3f>
      extended by org.openmali.vecmath2.pools.Matrix3fPool

public class Matrix3fPool
extends ObjectPool<Matrix3f>

An instance pool for Matrix3f instances.


Constructor Summary
Matrix3fPool(int initialSize)
           
 
Method Summary
 Matrix3f alloc()
          
protected  Matrix3f 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

Matrix3fPool

public Matrix3fPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Matrix3f alloc()

Overrides:
alloc in class ObjectPool<Matrix3f>