public interface VectorSet
When determining duplicates, -0 is distinguished from 0.
| Modifier and Type | Method and Description |
|---|---|
void |
add(float x,
float y,
float z)
Add the specified value to this set, if it's not already present.
|
void |
add(Vector3f vector)
Add the value of the specified Vector3f to this set, if it's not already
present.
|
void |
addAll(java.lang.Iterable<Vector3f> vectors)
Add the specified values to this set, to the extent that they're not
already present.
|
void |
clear()
Reset this set to its initial (empty) state without altering its
capacity.
|
boolean |
contains(float x,
float y,
float z)
Test whether this set contains the specified value.
|
boolean |
contains(Vector3f vector)
Test whether this set contains the value of the specified Vector3f.
|
Matrix3f |
covariance(Matrix3f storeResult)
Determine the sample covariance of the values in this set.
|
Vector3f |
maxAbs(Vector3f storeResult)
Find the maximum absolute coordinate for each axis among the Vector3f
values in this set.
|
float |
maxLength()
Find the magnitude of the longest vector in this set.
|
void |
maxMin(Vector3f storeMaxima,
Vector3f storeMinima)
Find the maximum and minimum coordinates for each axis among the values
in this set.
|
Vector3f |
mean(Vector3f storeResult)
Determine the sample mean for each axis among the values in this set.
|
int |
numVectors()
Determine the number of values in this set.
|
java.nio.FloatBuffer |
toBuffer()
Access a Buffer containing all values in this set.
|
float[] |
toFloatArray()
Create an array of floats containing all values in this set.
|
Vector3f[] |
toVectorArray()
Create an array of vectors containing all values in this set.
|
void add(float x,
float y,
float z)
x - the X component of the new valuey - the Y component of the new valuez - the Z component of the new valuevoid add(Vector3f vector)
vector - the value to add (not null, unaffected)void addAll(java.lang.Iterable<Vector3f> vectors)
vectors - the values to add (not null, unaffected)void clear()
boolean contains(float x,
float y,
float z)
x - the X component of the value to findy - the Y component of the value to findz - the Z component of the value to findboolean contains(Vector3f vector)
vector - the value to find (not null, unaffected)Matrix3f covariance(Matrix3f storeResult)
storeResult - storage for the result (modified if not null)Vector3f maxAbs(Vector3f storeResult)
storeResult - storage for the result (modified if not null)float maxLength()
void maxMin(Vector3f storeMaxima, Vector3f storeMinima)
storeMaxima - storage for the maxima (not null, modified)storeMinima - storage for the minima (not null, modified)Vector3f mean(Vector3f storeResult)
storeResult - storage for the result (modified if not null)int numVectors()
java.nio.FloatBuffer toBuffer()
float[] toFloatArray()
Vector3f[] toVectorArray()