|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.collections.Vec2fCollection
public class Vec2fCollection
Provides the abstraction of a collection of Vec2f objects while allowing access to the backing store in the form of a direct FloatBuffer to make it easy to pass down to OpenGL.
Constructor Summary | |
---|---|
Vec2fCollection()
Creates an empty Vec2fCollection. |
|
Vec2fCollection(int estimatedSize)
Creates an empty Vec2fCollection with the backing store sized to hold roughly the given number of vectors. |
Method Summary | |
---|---|
void |
add(Vec2f value)
Adds the given Vec2f to this collection, expanding it if necessary. |
Vec2f |
get(int index)
Fetches the Vec2f at the given index. |
FloatBuffer |
getData()
Returns the backing buffer of this collection. |
Vec2f |
remove(int index)
Removes the given Vec2f from this collection. |
void |
set(int index,
Vec2f value)
Stores the given Vec2f at the given index. |
int |
size()
Returns the number of Vec2fs currently in this collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Vec2fCollection()
public Vec2fCollection(int estimatedSize)
Method Detail |
---|
public int size()
public void set(int index, Vec2f value) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public Vec2f get(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public void add(Vec2f value)
public Vec2f remove(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public FloatBuffer getData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |