default
core
core
core.FloatArray
core.Envelope
core.FloatArray128
core.FloatArray16
core.FloatArray32
core.FloatArray64
core.FloatArray8
add(float f) : boolean
- Add the given float value 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.
alloc(int max) : boolean
- Allocate the given number of array elements.
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.
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.
empty()
- Reset the number of used elements, numElements, to 0.
fill(float f)
- Set all used elements to the given value.
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).
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.
getAbsMean() : float
- Return average element value, not regarding sign.
getAbsMin() : float
- Return smallest element value, not regarding sign.
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.
getMean() : float
- Return average element value.
getMin() : float
- Return smallest element value.
getNumElements() : int
- Return number of used elements.
getString() : String
- Return string representation of this array.
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.
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.
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
scale(FloatArray src, float s)
- Read elements from source array, scale by s and write to this array.
setNumElements(int num)
- Set the number of used elements to the given value.
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.
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 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 alloc | ||||||||||
Allocate the given number of array elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The number of used elements, numElements, will be reset to 0. |
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 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 empty | |||
Reset the number of used elements, numElements, to 0. | |||
Signature | |||
|
Method fill | |||||
Set all used elements to the given value. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
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 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 getAbsMean | |||||
Return average element value, not regarding sign. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAbsMin | |||||
Return smallest element value, not regarding sign. | |||||
Signature | |||||
| |||||
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 getMean | |||||
Return average element value. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMin | |||||
Return smallest element value. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNumElements | |||||
Return number of used elements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString | |||||
Return string representation of this array. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method insert | ||||||||||||||||||||
Insert new element before the given index. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
This will resize the array if required. |
Method interleave | ||||||||||||||||||||||||||||||||||||||||
Copy interleaved elements from multi-channel array. | ||||||||||||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||||||||||||
|
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 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 scale | |||||||||||||||
Read elements from source array, scale by s and write to this array. | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
@todo Use operator => |
Method setNumElements | |||||
Set the number of used elements to the given value. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
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 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. Mon, 28/Dec/2015 13:15:54