virtualx-engine/modules/gdscript
Meriipu 347a9df0a1
GDScript: Clarified/fixed inaccuracies in the built-in function docs.
The input to smoothstep is not actually a weight, and the decscription
of smoothstep was pretty hard to understand and easy to misinterpret.

Clarified what it means to be approximately equal.

nearest_po2 does not do what the descriptions says it does. For one,
it returns the same power if the input is a power of 2. Second, it
returns 0 if the input is negative or 0, while the smallest possible
integral power of 2 actually is 1 (2^0 = 1). Due to the implementation
and how it is used in a lot of places, it does not seem wise to change
such a core function however, and I decided it is better to alter the
description of the built-in.

Added a few examples/clarifications/edge-cases.

(cherry picked from commit 7f9bfee0ac)
2021-02-11 13:12:06 +01:00
..
doc_classes GDScript: Clarified/fixed inaccuracies in the built-in function docs. 2021-02-11 13:12:06 +01:00
editor Fix highlight color for class attributes that are also keywords 2021-01-21 11:46:32 +00:00
icons Add support for creating editor icons per module 2019-06-28 23:42:26 +03:00
language_server Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
config.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
gdscript.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript_compiler.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript_compiler.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript_editor.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript_function.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript_function.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript_functions.cpp GDScript: Clarified/fixed inaccuracies in the built-in function docs. 2021-02-11 13:12:06 +01:00
gdscript_functions.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript_parser.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript_parser.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript_tokenizer.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript_tokenizer.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_types.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00