org.openmali.vecmath2.pools
Class Vector2fPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Vector2f>
      extended by org.openmali.vecmath2.pools.Vector2fPool

public class Vector2fPool
extends ObjectPool<Vector2f>

An instance pool for Vector2f instances.


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

Vector2fPool

public Vector2fPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Vector2f alloc()

Overrides:
alloc in class ObjectPool<Vector2f>

alloc

public Vector2f alloc(float x,
                      float y)