summaryrefslogtreecommitdiff
path: root/doc/classes/Vector3i.xml
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-06-21 17:16:10 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-06-21 17:16:10 +0200
commit227f12478d2d29fc3884388d973a4de654d6651f (patch)
tree92916a9a5ae37fa8abe69df4b66e9c7ddf4be26a /doc/classes/Vector3i.xml
parent277d2f1f50fe060ad7ff4b2696bf67a742a0ea83 (diff)
Document how Vector2, Vector3 and Color behave in a boolean context
See #39731.
Diffstat (limited to 'doc/classes/Vector3i.xml')
-rw-r--r--doc/classes/Vector3i.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/Vector3i.xml b/doc/classes/Vector3i.xml
index c5aa3d0347..91d64ea609 100644
--- a/doc/classes/Vector3i.xml
+++ b/doc/classes/Vector3i.xml
@@ -5,7 +5,8 @@
</brief_description>
<description>
3-element structure that can be used to represent positions in 3D space or any other pair of numeric values.
- It uses integer coordinates.
+ It uses integer coordinates and is therefore preferable to [Vector3] when exact precision is required.
+ [b]Note:[/b] In a boolean context, a Vector3i will evaluate to [code]false[/code] if it's equal to [code]Vector3i(0, 0, 0)[/code]. Otherwise, a Vector3i will always evaluate to [code]true[/code].
</description>
<tutorials>
<link>https://docs.godotengine.org/en/latest/tutorials/math/index.html</link>