public final class MyBuffer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
| Modifier and Type | Method and Description |
|---|---|
static Matrix3f |
covariance(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
Matrix3f storeResult)
Return the sample covariance of the 3-D vectors in the specified
FloatBuffer range.
|
static float |
cylinderRadius(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
int axisIndex)
Return the radius of a bounding cylinder for the specified FloatBuffer
range.
|
static java.nio.FloatBuffer |
ensureCapacity(int minFloats,
java.nio.FloatBuffer bufferToReuse)
Reuse the specified FloatBuffer, if it has the required capacity.
|
static int |
frequency(java.nio.IntBuffer buffer,
int startPosition,
int endPosition,
int intValue)
Count the number of times the specified value occurs in the specified
IntBuffer range.
|
static void |
get(java.nio.FloatBuffer buffer,
int startPosition,
Vector3f storeVector)
Read a Vector3f starting from the specified position.
|
static Vector3f |
maxAbs(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
Vector3f storeResult)
Find the maximum absolute coordinate for each axis in the specified
FloatBuffer range.
|
static float |
maxLength(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition)
Find the magnitude of the longest 3-D vector in the specified FloatBuffer
range.
|
static void |
maxMin(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
Vector3f storeMaxima,
Vector3f storeMinima)
Find the maximum and minimum coordinates of 3-D vectors in the specified
FloatBuffer range.
|
static Vector3f |
mean(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
Vector3f storeResult)
Determine the arithmetic mean of 3-D vectors in the specified FloatBuffer
range.
|
static void |
put(java.nio.FloatBuffer buffer,
int startPosition,
Vector3f vector)
Write a Vector3f starting at the specified position.
|
static void |
rotate(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
Quaternion rotation)
Apply the specified rotation to 3-D vectors in the specified FloatBuffer
range.
|
static void |
transform(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
Transform transform)
Apply the specified coordinate transform to 3-D vectors in the specified
FloatBuffer range.
|
static void |
translate(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
Vector3f offsetVector)
Add the specified offset to 3-D vectors in the specified FloatBuffer
range.
|
public static final java.util.logging.Logger logger
public static Matrix3f covariance(java.nio.FloatBuffer buffer, int startPosition, int endPosition, Matrix3f storeResult)
buffer - the buffer that contains the vectors (not null, unaffected)startPosition - the position at which the vectors start (≥0,
≤endPosition-6)endPosition - the position at which the vectors end
(≥startPosition+6, ≤capacity)storeResult - storage for the result (modified if not null)public static float cylinderRadius(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
int axisIndex)
buffer - the buffer that contains the vectors (not null, unaffected)startPosition - the position at which the vectors start (≥0,
≤endPosition)endPosition - the position at which the vectors end
(≥startPosition, ≤capacity)axisIndex - the cylinder's height axis: 0→X, 1→Y, 2→Zpublic static java.nio.FloatBuffer ensureCapacity(int minFloats,
java.nio.FloatBuffer bufferToReuse)
minFloats - the required capacity (in floats, ≥0)bufferToReuse - the buffer to reuse, or null for nonepublic static int frequency(java.nio.IntBuffer buffer,
int startPosition,
int endPosition,
int intValue)
buffer - the buffer that contains the data (not null, unaffected)startPosition - the position at which the data start (≥0,
≤endPosition)endPosition - the position at which the data end (≥startPosition,
≤capacity)intValue - the value to search forpublic static void get(java.nio.FloatBuffer buffer,
int startPosition,
Vector3f storeVector)
buffer - the buffer to read from (not null, unaffected)startPosition - the position at which to start reading (≥0)storeVector - storage for the vector (not null, modified)public static Vector3f maxAbs(java.nio.FloatBuffer buffer, int startPosition, int endPosition, Vector3f storeResult)
buffer - the buffer that contains the vectors (not null, unaffected)startPosition - the position at which the vectors start (≥0,
≤endPosition)endPosition - the position at which the vectors end
(≥startPosition, ≤capacity)storeResult - storage for the result (modified if not null)public static float maxLength(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition)
buffer - the buffer that contains the vectors (not null, unaffected)startPosition - the position at which the vectors start (≥0,
≤endPosition)endPosition - the position at which the vectors end
(≥startPosition, ≤capacity)public static void maxMin(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
Vector3f storeMaxima,
Vector3f storeMinima)
buffer - the buffer that contains the vectors (not null, unaffected)startPosition - the position at which the vectors start (≥0,
≤endPosition)endPosition - the position at which the vectors end
(≥startPosition, ≤capacity)storeMaxima - storage for maxima (not null, modified)storeMinima - storage for minima (not null, modified)public static Vector3f mean(java.nio.FloatBuffer buffer, int startPosition, int endPosition, Vector3f storeResult)
buffer - the buffer that contains the vectors (not null, unaffected)startPosition - the position at which the vectors start (≥0,
≤endPosition-3)endPosition - the position at which the vectors end
(≥startPosition+3, ≤capacity)storeResult - storage for the result (modified if not null)public static void put(java.nio.FloatBuffer buffer,
int startPosition,
Vector3f vector)
buffer - the buffer to write to (not null, modified)startPosition - the position at which to start writing (≥0)vector - the input vector (not null, unaffected)public static void rotate(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
Quaternion rotation)
buffer - the buffer that contains the vectors (not null, MODIFIED)startPosition - the position at which the vectors start (≥0,
≤endPosition)endPosition - the position at which the vectors end
(≥startPosition, ≤capacity)rotation - the rotation to apply (not null, unaffected)public static void transform(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
Transform transform)
buffer - the buffer that contains the vectors (not null, MODIFIED)startPosition - the position at which the vectors start (≥0,
≤endPosition)endPosition - the position at which the vectors end
(≥startPosition, ≤capacity)transform - the transform to apply (not null, unaffected)public static void translate(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition,
Vector3f offsetVector)
buffer - the buffer that contains the vectors (not null, MODIFIED)startPosition - the position at which the vectors start (≥0,
≤endPosition)endPosition - the position at which the vectors end
(≥startPosition, ≤capacity)offsetVector - the vector to add (not null, unaffected)