mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Document how Vector2, Vector3 and Color behave in a boolean context
See #39731.
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
</brief_description>
|
||||
<description>
|
||||
2-element structure that can be used to represent positions in 2D space or any other pair of numeric values.
|
||||
It uses integer coordinates.
|
||||
It uses integer coordinates and is therefore preferable to [Vector2] when exact precision is required.
|
||||
[b]Note:[/b] In a boolean context, a Vector2i will evaluate to [code]false[/code] if it's equal to [code]Vector2i(0, 0)[/code]. Otherwise, a Vector2i will always evaluate to [code]true[/code].
|
||||
</description>
|
||||
<tutorials>
|
||||
<link>https://docs.godotengine.org/en/latest/tutorials/math/index.html</link>
|
||||
|
||||
Reference in New Issue
Block a user