Complete documentation of packed arrays
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
A packed array of 64-bit floating-point values.
|
||||
</brief_description>
|
||||
<description>
|
||||
An array specifically designed to hold 64-bit floating-point values. Packs data tightly, so it saves memory for large array sizes.
|
||||
An array specifically designed to hold 64-bit floating-point values (double). Packs data tightly, so it saves memory for large array sizes.
|
||||
If you only need to pack 32-bit floats tightly, see [PackedFloat32Array] for a more memory-friendly alternative.
|
||||
</description>
|
||||
<tutorials>
|
||||
@ -188,24 +188,28 @@
|
||||
<return type="bool" />
|
||||
<param index="0" name="right" type="PackedFloat64Array" />
|
||||
<description>
|
||||
Returns [code]true[/code] if contents of the arrays differ.
|
||||
</description>
|
||||
</operator>
|
||||
<operator name="operator +">
|
||||
<return type="PackedFloat64Array" />
|
||||
<param index="0" name="right" type="PackedFloat64Array" />
|
||||
<description>
|
||||
Returns a new [PackedFloat64Array] with contents of [param right] added at the end of this array. For better performance, consider using [method append_array] instead.
|
||||
</description>
|
||||
</operator>
|
||||
<operator name="operator ==">
|
||||
<return type="bool" />
|
||||
<param index="0" name="right" type="PackedFloat64Array" />
|
||||
<description>
|
||||
Returns [code]true[/code] if contents of both arrays are the same, i.e. they have all equal doubles at the corresponding indices.
|
||||
</description>
|
||||
</operator>
|
||||
<operator name="operator []">
|
||||
<return type="float" />
|
||||
<param index="0" name="index" type="int" />
|
||||
<description>
|
||||
Returns the [float] at index [param index]. Negative indices can be used to access the elements starting from the end. Using index out of array's bounds will result in an error.
|
||||
</description>
|
||||
</operator>
|
||||
</operators>
|
||||
|
||||
Reference in New Issue
Block a user