- Index
- »
- util
- »
- FloatArray
type
FloatArray
Optimized fixed size array of 4 or 8 byte unboxed floats. The array values default to zero.
methods
| copyFrom |
Copy the floats from |
|---|---|
| fill |
Fill this array with the given float value. |
| get |
Get the float at the given index. |
| makeF4 |
Create a 32-bit float array. |
| makeF8 |
Create a 64-bit float array. |
| set |
Set the float at the given index. |
| size |
Get number of floats in the array |
| sort |
Sort the floats in this array. |
Slot Details
copyFrom
This copyFrom(FloatArray that, Range? thatRange := null, Int thisOffset := 0)
Copy the floats from that array into this array and return this. The thatRange parameter may be used to specify a specific range of floats from the that parameter (negative indices are allowed) to copy. If thatRange is null then the entire range of that is copied. Or thisOffset specifies the starting index of this index to copy the first float. Raise an exception if this array is not properly sized or is not of the same signed/byte count as the that array.
fill
get
makeF4
static FloatArray makeF4(Int size)
Create a 32-bit float array.
makeF8
static FloatArray makeF8(Int size)
Create a 64-bit float array.
set
size
Int size()
Get number of floats in the array