org.openmali.vecmath2.pools
Class Vector4fPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Vector4f>
      extended by org.openmali.vecmath2.pools.Vector4fPool

public class Vector4fPool
extends ObjectPool<Vector4f>

An instance pool for Vector4f instances.


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

Vector4fPool

public Vector4fPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Vector4f alloc()

Overrides:
alloc in class ObjectPool<Vector4f>

alloc

public Vector4f alloc(float x,
                      float y,
                      float z,
                      float w)