org.openmali.vecmath2.pools
Class Point3dPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Point3d>
      extended by org.openmali.vecmath2.pools.Point3dPool

public class Point3dPool
extends ObjectPool<Point3d>

An instance pool for Point3d instances.


Constructor Summary
Point3dPool(int initialSize)
           
 
Method Summary
 Point3d alloc()
          
 Point3d alloc(double x, double y, double z)
           
protected  Point3d 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

Point3dPool

public Point3dPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Point3d alloc()

Overrides:
alloc in class ObjectPool<Point3d>

alloc

public Point3d alloc(double x,
                     double y,
                     double z)