org.openmali.vecmath2.pools
Class Point3fPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Point3f>
      extended by org.openmali.vecmath2.pools.Point3fPool

public class Point3fPool
extends ObjectPool<Point3f>

An instance pool for Point3f instances.


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

Point3fPool

public Point3fPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Point3f alloc()

Overrides:
alloc in class ObjectPool<Point3f>

alloc

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