7f9bfee0ac
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. |
||
---|---|---|
.. | ||
doc_classes | ||
editor | ||
icons | ||
language_server | ||
config.py | ||
gdscript_analyzer.cpp | ||
gdscript_analyzer.h | ||
gdscript_cache.cpp | ||
gdscript_cache.h | ||
gdscript_compiler.cpp | ||
gdscript_compiler.h | ||
gdscript_editor.cpp | ||
gdscript_function.cpp | ||
gdscript_function.h | ||
gdscript_functions.cpp | ||
gdscript_functions.h | ||
gdscript_parser.cpp | ||
gdscript_parser.h | ||
gdscript_tokenizer.cpp | ||
gdscript_tokenizer.h | ||
gdscript_warning.cpp | ||
gdscript_warning.h | ||
gdscript.cpp | ||
gdscript.h | ||
register_types.cpp | ||
register_types.h | ||
SCsub |