floatarray [object]
- methods
- clear - set all values to 0
- set1 - set all values to 1
- negate - negate all values
- assign - copy values from another source
- negate_from - copy negated values
- *[_assign] - combine values with arithmetic operations
- randbox - set values to random between two sources
- randext - set values to random around source 1 in the range of source 2
- multiply_add_assign - multiply two sources and add the result to this one
- lerp_to - linearly interpolate this source and another to the factor of the third one
- to_*_buffer - convert values to byte buffer, optionally scaling them
- read-only properties
- [aabb2] aabb2 - returns 2D bounding box of data, assuming data contains 2D vectors
- [aabb3] aabb3 - returns 3D bounding box of data, assuming data contains 3D vectors
- [int] size - returns array size - the number of values in this array
- [int] size2 - returns array size / 2 - the number of vec2 values in this array
- [int] size3 - returns array size / 3 - the number of vec3 values in this array
- [int] size4 - returns array size / 4 - the number of vec4 values in this array
- [int] size16 - returns array size / 16 - the number of mat4 values in this array
- other features:
- cloning support
- serialization support
- GC-safe
- indexing support for indices 0 - (size-1): returns/sets the specified subvalue
- tostring = "floatarray"
- dump: first 64 values, array formatting