org.openmali.vecmath2.pools
Class Ray3fPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Ray3f>
      extended by org.openmali.vecmath2.pools.Ray3fPool

public class Ray3fPool
extends ObjectPool<Ray3f>

An instance pool for Ray3f instances.


Constructor Summary
Ray3fPool(int initialSize)
           
 
Method Summary
 Ray3f alloc()
          
 Ray3f alloc(float ox, float oy, float oz, float dx, float dy, float dz)
           
 Ray3f alloc(Tuple3f origin, Vector3f direction)
           
protected  Ray3f 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

Ray3fPool

public Ray3fPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Ray3f alloc()

Overrides:
alloc in class ObjectPool<Ray3f>

alloc

public Ray3f alloc(float ox,
                   float oy,
                   float oz,
                   float dx,
                   float dy,
                   float dz)

alloc

public Ray3f alloc(Tuple3f origin,
                   Vector3f direction)