default
core
corecore.FloatArraycore.Envelope
core.FloatArray128
core.FloatArray16
core.FloatArray32
core.FloatArray64
core.FloatArray8add(float f) : boolean - Add the given float value to this array.
add2(float f1, f2) : boolean - Add the given float values to this array.
add3(float f1, f2, f3) : boolean - Add the given float values to this array.
add4(float f1, f2, f3, f4) : boolean - Add the given float values to this array.
addArray(Object array, int off, len) : boolean - Add the given array like object to this array.
addEmpty(int num) : int - Increase the number of used elements.
addFromARGB32(int argb32) : boolean - Add normalized R,G,B,A floats from packed ARGB32 integer.
alloc(int max) : boolean - Allocate the given number of array elements.
allocAndFill(int num, float f) : boolean - Allocate and set all used array elements to value "f".
bezierCubicDeCasteljau2d(float x0, y0, x1, y1, x2, y2, x3, y3, scaleX, scaleY, int recMax, float thresholdB, thresholdP, FloatArray retT) - Calculate bezier curve using the de Casteljau algorithm.
biquad(FloatArray faIn, int type, float dbGain, freq, res) - Apply biquad filter to input samples and store result in this array.
blend(FloatArray b, float weight) - Blend with other array and write to this array.
blendAB(FloatArray a, b, float weight) - Blend two arrays and write to this array.
contains(float f) : boolean - Check whether array contains the given value.
copyFrom(FloatArray src, int off, len, destOff) - Copy elements from source array.
delete(int index) : boolean - Delete element at the given index.
delete2(int index) : boolean - Delete two elements at the given index.
delete3(int index) : boolean - Delete three elements at the given index.
delete4(int index) : boolean - Delete four elements at the given index.
empty() - Reset the number of used elements, numElements, to 0.
fill(float f) - Set all used elements to the given value.
fillFromARGB32(int argb32) - Unpack ARGB32 integer and fill used_elements in R,G,B,A order.
fillRegion(int off, len, float val) - Fill a range of elements with a constant value.
findIdxBefore(float f) : int - Find index of last element that is smaller than 'f'.
findNearestIdx1d(float x, int off, stride, float maxDist) : int - Find index of x-element that has the smallest distance to point x.
findNearestIdx2d(float x, y, int off, stride, float maxDist, aspect) : int - Treat elements as x/y 2d vectors and find index of x-element that has the smallest distance to point (x,y).
fixNaNToZero() - Replace NaN values by 0
free() - Free all array elements.
get(int index) : float - Return element value at the given index.
getAbsMax() : float - Return biggest element value, not regarding sign.
getAbsMaxDiff(FloatArray o) : float - Return absolute maximum difference of 'o' to this array.
getAbsMean() : float - Return average element value, not regarding sign.
getAbsMin() : float - Return smallest element value, not regarding sign.
getDefault(int index, float def) : float - Return array element at 'index', or return 'def' when index is out of bounds.
getFirst() : float - Return first array element.
getLast() : float - Return last used array element.
getMax() : float - Return biggest element value.
getMaxElements() : int - Return total number of elements.
getMaxIdx() : int - Return index of biggest element value.
getMean() : float - Return average element value.
getMin() : float - Return smallest element value.
getMinIdx() : int - Return index of smallest element value.
getNumElements() : int - Return number of used elements.
getRev(int index) : float - Return element value at (numElements - 1 - index).
getRms() : float - Return RMS (root mean square) for all values in the array.
getRmsMax() : float - Return maximum RMS (root mean square).
getString() : String - Return string representation of this array.
getString2() : String - Return (x;y) pair string representation of this array.
getString3() : String - Return (x;y;z) tuple string representation of this array.
indexOf(float f, int off) : int - Return index of element with value "f". -1 if no matching element was found.
indexOfNot(float f, int off) : int - Return index of element that does not have value "f". -1 if no matching element was found.
insert(int index, float f) : boolean - Insert new element before the given index.
interleave(int numDestCh, destCh, FloatArray src, int numSrcCh, srcCh, numCh, numElem) - Copy interleaved elements from multi-channel array.
isEmpty() : boolean - Check if array is empty (numElements == 0).
isEqual(FloatArray o) : boolean - Compare to other array and return true if the array contents are equal.
join(Object a, b) - Join arrays 'a' and 'b'.
loadFromStreamFloat32(Stream s, int num) : boolean - Read 24bit IEEE floats from stream.
loadFromStreamSigned16(Stream s, int num) : boolean - Read signed 16bit integers from stream, convert to float and normalize.
loadFromStreamSigned24(Stream s, int num) : boolean - Read signed 24bit integers from stream, convert to float and normalize.
loadFromStreamUnsigned8(Stream s, int num) : boolean - Read unsigned 8bit integers from stream, convert to float and normalize.
mergeArraySkipVal(FloatArray fa, float skipVal) - Replace elements in this array by arrays from other array which do not equal 'skipVal'.
read32(Stream ifs, int num, destOff) : int - Read 32bit floating point values from the given input stream.
read64(Stream ifs, int num, destOff) : int - Read 64bit floating point values from the given input stream and truncate to 32bit.
realloc(int max) : boolean - Reallocate array to given size.
rearrange(IntArray order) : boolean - Rearrange array elements according to the given IntArray.
reverse() - Reverse element order
saveToStreamSigned12FrameEnc(Stream s, int numElements) : boolean - Write signed 12bit integers to stream (clip to -2048..+2047).
saveToStreamSigned16(Stream s, int numElements) : boolean - Write signed 16bit integers to stream (clip to -32768..+32767)
scale(Object src, float s) - Read elements from source array, scale by s and write to this array.
set(int index, float val) - Set element at "index" to "val".
setNumElements(int num) - Set the number of used elements to the given value.
setRev(int index, float val) - Set element at "numElements - 1 - index" to "val".
sortByValue(IntArray order) - Sort elements by value and write new element order to the given IntArray.
sum(int off, num) : float - Sum elements
sumPathLen1d(int off, num) : float - Sum element deltas
sumPathLen2d(int off, num) : float - Treat elements as x/y 2d vectors and calculate path length.
swap(int indexA, indexB) : boolean - Swap two array elements.
unlinkFrom(FloatArray src) - Grab elements from 'src' and transfer elements ownership to this object.
useAll() - Mark all array elements used, i.e. set numElements = maxElements.
visit(FloatArray src, int off, len) - Create a view into the given FloatArray.
winCosine(float index) : float - Return cosine interpolation of elements.
winCubic(float index) : float - Return cubic interpolation of elements.
winLinear(float index) : float - Return linear interpolation of elements.
winQuadratic(float index) : float - Return quadratic interpolation of elements.
winQuintic(float index) : float - Return quintic interpolation of elements.
write32(Stream ofs, int num, srcOff) : int - Write 32bit floating point values to the given output stream.
write64(Stream ofs, int num, srcOff) : int - Write 64bit floating point values to the given output stream.
Method add | ||||||||||
Add the given float value to this array. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Resize array if necessary. | ||||||||||
Method add2 | ||||||||||||||||||||
Add the given float values to this array. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
Resize array if necessary. | ||||||||||||||||||||
Method add3 | |||||||||||||||||||||||||
Add the given float values to this array. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
Resize array if necessary. | |||||||||||||||||||||||||
Method add4 | ||||||||||||||||||||||||||||||
Add the given float values to this array. | ||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Returns | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Description | ||||||||||||||||||||||||||||||
Resize array if necessary. | ||||||||||||||||||||||||||||||
Method addArray | |||||||||||||||||||||||||
Add the given array like object to this array. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
Resize array if necessary. | |||||||||||||||||||||||||
Method addEmpty | ||||||||||
Increase the number of used elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
This will not resize the array! | ||||||||||
Method addFromARGB32 | ||||||||||
Add normalized R,G,B,A floats from packed ARGB32 integer. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method alloc | ||||||||||
Allocate the given number of array elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The number of used elements, numElements, will be reset to 0. | ||||||||||
Method allocAndFill | ||||||||||||||||||||
Allocate and set all used array elements to value "f". | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method bezierCubicDeCasteljau2d | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Calculate bezier curve using the de Casteljau algorithm. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note: the array will first be emptied and then filled with the resulting vertices (check numElements afterwards). |
Method biquad | ||||||||||||||||||||||||||||||
Apply biquad filter to input samples and store result in this array. | ||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Description | ||||||||||||||||||||||||||||||
Caller must resize this array if necessary. |
Method blend | |||||||||||||||
Blend with other array and write to this array. | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
Scale delta (otherValue-thisValue) by "weight" and write to this array. |
Method blendAB | ||||||||||||||||||||
Blend two arrays and write to this array. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
Scale delta (bValue-aValue) by "weight" and write to this array. |
Method contains | ||||||||||
Check whether array contains the given value. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method copyFrom | |||||||||||||||||||||||||
Copy elements from source array. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method delete | ||||||||||
Delete element at the given index. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method delete2 | ||||||||||
Delete two elements at the given index. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method delete3 | ||||||||||
Delete three elements at the given index. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method delete4 | ||||||||||
Delete four elements at the given index. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method empty | |||
Reset the number of used elements, numElements, to 0. | |||
Signature | |||
|
Method fill | |||||
Set all used elements to the given value. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method fillFromARGB32 | |||||
Unpack ARGB32 integer and fill used_elements in R,G,B,A order. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method fillRegion | ||||||||||||||||||||
Fill a range of elements with a constant value. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
The region start/end will be clipped to (0;numElements). |
Method findIdxBefore | ||||||||||
Find index of last element that is smaller than 'f'. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method findNearestIdx1d | ||||||||||||||||||||||||||||||
Find index of x-element that has the smallest distance to point x. | ||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Returns | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Method findNearestIdx2d | ||||||||||||||||||||||||||||||||||||||||
Treat elements as x/y 2d vectors and find index of x-element that has the smallest distance to point (x,y). | ||||||||||||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
Returns | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
Method fixNaNToZero | |||
Replace NaN values by 0 | |||
Signature | |||
|
Method free | |||
Free all array elements. | |||
Signature | |||
|
Method get | ||||||||||
Return element value at the given index. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Silently return 0.0f if "index" is out of bounds. | ||||||||||
Method getAbsMax | |||||
Return biggest element value, not regarding sign. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAbsMaxDiff | ||||||||||
Return absolute maximum difference of 'o' to this array. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method getAbsMean | |||||
Return average element value, not regarding sign. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAbsMin | |||||
Return smallest element value, not regarding sign. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getDefault | ||||||||||||||||||||
Return array element at 'index', or return 'def' when index is out of bounds. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method getFirst | |||||
Return first array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getLast | |||||
Return last used array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMax | |||||
Return biggest element value. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMaxElements | |||||
Return total number of elements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMaxIdx | |||||
Return index of biggest element value. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMean | |||||
Return average element value. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMin | |||||
Return smallest element value. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMinIdx | |||||
Return index of smallest element value. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNumElements | |||||
Return number of used elements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getRev | ||||||||||
Return element value at (numElements - 1 - index). | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Silently return 0.0f if resulting index is out of bounds. | ||||||||||
Method getRms | |||||
Return RMS (root mean square) for all values in the array. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getRmsMax | |||||
Return maximum RMS (root mean square). | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString | |||||
Return string representation of this array. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString2 | |||||
Return (x;y) pair string representation of this array. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString3 | |||||
Return (x;y;z) tuple string representation of this array. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method indexOf | ||||||||||||||||||||
Return index of element with value "f". -1 if no matching element was found. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method indexOfNot | ||||||||||||||||||||
Return index of element that does not have value "f". -1 if no matching element was found. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method insert | ||||||||||||||||||||
Insert new element before the given index. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
Resize the array if required. | ||||||||||||||||||||
Method interleave | ||||||||||||||||||||||||||||||||||||||||
Copy interleaved elements from multi-channel array. | ||||||||||||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||||||||||||
|
Method isEmpty | |||||
Check if array is empty (numElements == 0). | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method isEqual | ||||||||||
Compare to other array and return true if the array contents are equal. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method join | |
Join arrays 'a' and 'b'. | |
Signature | |
Arguments | |
Method loadFromStreamFloat32 | ||||||||||||||||||||
Read 24bit IEEE floats from stream. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method loadFromStreamSigned16 | ||||||||||||||||||||
Read signed 16bit integers from stream, convert to float and normalize. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method loadFromStreamSigned24 | ||||||||||||||||||||
Read signed 24bit integers from stream, convert to float and normalize. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method loadFromStreamUnsigned8 | ||||||||||||||||||||
Read unsigned 8bit integers from stream, convert to float and normalize. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method mergeArraySkipVal | |||||||||||||||
Replace elements in this array by arrays from other array which do not equal 'skipVal'. | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method read32 | |||||||||||||||||||||||||
Read 32bit floating point values from the given input stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method read64 | |||||||||||||||||||||||||
Read 64bit floating point values from the given input stream and truncate to 32bit. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method realloc | ||||||||||
Reallocate array to given size. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Discard/add new elements as required. | ||||||||||
Method rearrange | ||||||||||
Rearrange array elements according to the given IntArray. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method reverse | |||
Reverse element order | |||
Signature | |||
|
Method saveToStreamSigned12FrameEnc | ||||||||||||||||||||
Write signed 12bit integers to stream (clip to -2048..+2047). | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
Encode in 8-value frames (4, 8, 16 bit deltas, or 16bit raw values) | ||||||||||||||||||||
Method saveToStreamSigned16 | ||||||||||||||||||||
Write signed 16bit integers to stream (clip to -32768..+32767) | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method scale | |||||||||||||||
Read elements from source array, scale by s and write to this array. | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
Lazy-allocate elements as required. @todo Use operator => |
Method set | |||||||||||||||
Set element at "index" to "val". | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
Updates numElements when index exceeds it (>=).
Silently do nothing when index exceed array size (>= maxElements). |
Method setNumElements | |||||
Set the number of used elements to the given value. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setRev | |||||||||||||||
Set element at "numElements - 1 - index" to "val". | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
Silently do nothing when index exceed array size (<0 || >= maxElements). |
Method sortByValue | |||||
Sort elements by value and write new element order to the given IntArray. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method sum | ||||||||||||||||||||
Sum elements | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method sumPathLen1d | ||||||||||||||||||||
Sum element deltas | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method sumPathLen2d | ||||||||||||||||||||
Treat elements as x/y 2d vectors and calculate path length. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method swap | ||||||||||||||||||||
Swap two array elements. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method unlinkFrom | |||||
Grab elements from 'src' and transfer elements ownership to this object. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method useAll | |||
Mark all array elements used, i.e. set numElements = maxElements. | |||
Signature | |||
|
Method visit | ||||||||||||||||||||
Create a view into the given FloatArray. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method winCosine | ||||||||||
Return cosine interpolation of elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method winCubic | ||||||||||
Return cubic interpolation of elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method winLinear | ||||||||||
Return linear interpolation of elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method winQuadratic | ||||||||||
Return quadratic interpolation of elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method winQuintic | ||||||||||
Return quintic interpolation of elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method write32 | |||||||||||||||||||||||||
Write 32bit floating point values to the given output stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method write64 | |||||||||||||||||||||||||
Write 64bit floating point values to the given output stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:41:59