aboutsummaryrefslogtreecommitdiff
path: root/doc/base/classes.xml
diff options
context:
space:
mode:
authorGau o fthe Veldt2016-07-17 16:43:10 -0700
committerGau o fthe Veldt2016-07-23 12:52:41 -0700
commit82d4cb5114a9d5f341dba84cbee51fcfe1504de6 (patch)
tree372cb6449599b1a2ac9e743379b9058010e93a90 /doc/base/classes.xml
parent221cb58382ae34d4f91d9923fd979a328feabace (diff)
downloadgodot-82d4cb5114a9d5f341dba84cbee51fcfe1504de6.tar.gz
godot-82d4cb5114a9d5f341dba84cbee51fcfe1504de6.tar.zst
godot-82d4cb5114a9d5f341dba84cbee51fcfe1504de6.zip
Added slicing operation to DVector via DVector.subarray(int start,int end) method.
Negative indices index from the end of the array. Indices are range checked before attempting and return appropriate error when out of range. Binding for RawArray in gdscript to access DVector.subarray() provided. Documentation of RawArray.subarray() in classes.xml provided.
Diffstat (limited to 'doc/base/classes.xml')
-rw-r--r--doc/base/classes.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index 4c2a0fe7b..02e88d06a 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -30544,6 +30544,17 @@
Return the size of the array.
</description>
</method>
+ <method name="subarray">
+ <return type="RawArray">
+ </return>
+ <argument index="0" name="from" type="int">
+ </argument>
+ <argument index="1" name="to" type="int">
+ </argument>
+ <description>
+ Returns the slice of the [RawArray] between indices (inclusive) as a new [RawArray]. Any negative index is considered to be from the end of the array.
+ </description>
+ </method>
</methods>
<constants>
</constants>