virtualx-engine/core
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
..
bind Add an OS.get_thread_caller_id() method 2021-01-26 22:10:30 +01:00
crypto Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
io Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math GDScript: Clarified/fixed inaccuracies in the built-in function docs. 2021-02-11 13:12:06 +01:00
os Add support for new SDL gamecontroller keywords. 2021-02-07 16:41:23 +00:00
array.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
array.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
class_db.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
class_db.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
color.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
color.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
color_names.inc doc: Document named color constants 2020-01-26 12:08:16 +01:00
command_queue_mt.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
command_queue_mt.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
compressed_translation.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
compressed_translation.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
core_builders.py Update AUTHORS and DONORS list 2020-08-14 00:32:05 +02:00
core_string_names.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
core_string_names.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
cowdata.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
dictionary.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
dictionary.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
engine.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
engine.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
error_list.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
error_macros.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
error_macros.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
func_ref.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
func_ref.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
global_constants.cpp Add support for new SDL gamecontroller keywords. 2021-02-07 16:41:23 +00:00
global_constants.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
hash_map.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
hashfuncs.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
image.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
image.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
input_map.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
input_map.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
int_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
list.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
local_vector.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
make_binders.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
map.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
message_queue.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
message_queue.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
method_bind.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
method_bind.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
method_ptrcall.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
node_path.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
node_path.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
oa_hash_map.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
object.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
object.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
object_id.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
object_rc.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ordered_hash_map.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
packed_data_container.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
packed_data_container.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
pair.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
path_remap.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
path_remap.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
pool_allocator.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
pool_allocator.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
pool_vector.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
pool_vector.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
pooled_list.h doc: Sync classref with current source 2021-01-13 16:55:27 +01:00
print_string.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
print_string.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
project_settings.cpp Detect external modification of scenes 2021-02-11 01:08:49 +01:00
project_settings.h Detect external modification of scenes 2021-02-11 01:08:49 +01:00
ref_ptr.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ref_ptr.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
reference.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
reference.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_core_types.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_core_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
resource.cpp Expose Resource.emit_changed() to script 2021-01-15 16:49:46 +01:00
resource.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rid.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rid.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ring_buffer.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
safe_refcount.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
safe_refcount.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
script_debugger_local.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
script_debugger_local.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
script_language.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
script_language.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub Don't handle BaseException in build scripts 2020-12-12 10:10:23 +00:00
self_list.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
set.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
simple_type.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
sort_array.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
string_buffer.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
string_builder.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
string_builder.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
string_name.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
string_name.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
translation.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
translation.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
type_info.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
typedefs.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ucaps.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
undo_redo.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
undo_redo.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ustring.cpp Make String::ends_with don't use String::rfind 2021-02-11 13:12:06 +01:00
ustring.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
variant.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
variant.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
variant_call.cpp [3.2] Use instance and first arg in Basis is_equal_approx 2021-02-09 05:09:51 -05:00
variant_op.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
variant_parser.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
variant_parser.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vector.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
version.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vmap.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vset.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00