diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-22 12:36:35 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-22 12:36:35 +0100 |
commit | 876ea3e143047e09cbc8fa106c4769b5003857fa (patch) | |
tree | 099724d59355c88386ea4d2b5716c8063e071714 /doc/classes/Vector4.xml | |
parent | 0b2dc0f017c4495e7b3fbf5c5c173cf9ad61e0d8 (diff) | |
parent | edfb504efe0a9296561db4a84836603be6dbc274 (diff) |
Merge pull request #68579 from jtnicholl/float_doc
Document that `Vector#` types are 32-bit by default and `Vector#i` are always 32-bit
Diffstat (limited to 'doc/classes/Vector4.xml')
-rw-r--r-- | doc/classes/Vector4.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/Vector4.xml b/doc/classes/Vector4.xml index 662d0bce3a..a2759937c1 100644 --- a/doc/classes/Vector4.xml +++ b/doc/classes/Vector4.xml @@ -5,7 +5,8 @@ </brief_description> <description> 4-element structure that can be used to represent any quadruplet of numeric values. - It uses floating-point coordinates. See [Vector4i] for its integer counterpart. + It uses floating-point coordinates. By default, these floating-point values use 32-bit precision, unlike [float] which is always 64-bit. If double precision is needed, compile the engine with the option [code]float=64[/code]. + See [Vector4i] for its integer counterpart. [b]Note:[/b] In a boolean context, a Vector4 will evaluate to [code]false[/code] if it's equal to [code]Vector4(0, 0, 0, 0)[/code]. Otherwise, a Vector4 will always evaluate to [code]true[/code]. </description> <tutorials> |