public class VectorSet
extends java.lang.Object
This class is shared between JBullet and Native Bullet.
Constructor and Description |
---|
VectorSet(int numVectors)
Instantiate an empty set with the specified initial capacity and default
load factor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Vector3f vector)
Add the value of the specified Vector3f to this set.
|
boolean |
contains(Vector3f vector)
Test whether this set contains the value of the specified Vector3f.
|
Vector3f |
mean(Vector3f storeResult)
Calculate the sample mean for each axis over the Vector3f values in this
set.
|
int |
numVectors()
Calculate the number of Vector3f values in this set.
|
java.nio.FloatBuffer |
toBuffer()
Access the buffer containing all the Vector3f values in this set.
|
public VectorSet(int numVectors)
numVectors
- the initial capacity of the hash table (>0)public void add(Vector3f vector)
vector
- the value to add (not null, unaffected)public boolean contains(Vector3f vector)
vector
- the value to find (not null, unaffected)public Vector3f mean(Vector3f storeResult)
storeResult
- (modified if not null)public int numVectors()
public java.nio.FloatBuffer toBuffer()