org.openmali.vecmath2.pools
Class Ray3fPool
java.lang.Object
org.openmali.vecmath2.pools.ObjectPool<Ray3f>
org.openmali.vecmath2.pools.Ray3fPool
public class Ray3fPool
- extends ObjectPool<Ray3f>
An instance pool for Ray3f instances.
- Author:
- Marvin Froehlich (aka Qudus)
|
Constructor Summary |
Ray3fPool(int initialSize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ray3fPool
public Ray3fPool(int initialSize)
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)