summaryrefslogtreecommitdiffstats
path: root/doc/classes/@GlobalScope.xml
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-02 14:01:09 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-02 14:01:09 +0200
commit396ce1a8c8a69a8a1448fcc9321bf055ae9fb5f1 (patch)
treec5d890d4d5e9fbe516b38e47caf9fdbd676b3293 /doc/classes/@GlobalScope.xml
parenta0b0b19043ca670940049e88e73a965aa9c8d721 (diff)
parent0f5e0d1637cc401f353fd4692c1279a87972bc85 (diff)
downloadredot-engine-396ce1a8c8a69a8a1448fcc9321bf055ae9fb5f1.tar.gz
Merge pull request #80223 from AThousandShips/vec_elem
Expose `Vector*` component-wise and scalar `min/max` to scripting
Diffstat (limited to 'doc/classes/@GlobalScope.xml')
-rw-r--r--doc/classes/@GlobalScope.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml
index 0307684588..f2a6517a0c 100644
--- a/doc/classes/@GlobalScope.xml
+++ b/doc/classes/@GlobalScope.xml
@@ -696,6 +696,7 @@
[codeblock]
max(1, 7, 3, -6, 5) # Returns 7
[/codeblock]
+ [b]Note:[/b] When using this on vectors it will [i]not[/i] perform component-wise maximum, and will pick the largest value when compared using [code]x &lt; y[/code]. To perform component-wise maximum, use [method Vector2.max], [method Vector2i.max], [method Vector3.max], [method Vector3i.max], [method Vector4.max], and [method Vector4i.max].
</description>
</method>
<method name="maxf">
@@ -729,6 +730,7 @@
[codeblock]
min(1, 7, 3, -6, 5) # Returns -6
[/codeblock]
+ [b]Note:[/b] When using this on vectors it will [i]not[/i] perform component-wise minimum, and will pick the smallest value when compared using [code]x &lt; y[/code]. To perform component-wise minimum, use [method Vector2.min], [method Vector2i.min], [method Vector3.min], [method Vector3i.min], [method Vector4.min], and [method Vector4i.min].
</description>
</method>
<method name="minf">