virtualx-engine/core/math
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
..
a_star.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
a_star.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
aabb.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
aabb.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_frame.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_frame.h Make audio bus channels' peak volume consistent 2021-02-05 09:26:09 +01:00
basis.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
basis.h [3.2] Use instance and first arg in Basis is_equal_approx 2021-02-09 05:09:51 -05:00
bsp_tree.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
bsp_tree.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
bvh.h BVH add support for visibility (activation) 2021-01-30 13:21:40 +00:00
bvh_abb.h doc: Sync classref with current source 2021-01-13 16:55:27 +01:00
bvh_cull.inc BVH render tree new updating scheme 2021-01-19 14:24:32 +00:00
bvh_debug.inc BVH - fix physics expecting plus one based IDs. 2021-01-14 13:26:44 +00:00
bvh_integrity.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_logic.inc BVH add support for visibility (activation) 2021-01-30 13:21:40 +00:00
bvh_misc.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_pair.inc BVH fix pairing AABB init and mask checks 2021-01-28 14:01:03 +00:00
bvh_public.inc BVH add support for visibility (activation) 2021-01-30 13:21:40 +00:00
bvh_refit.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_split.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_structs.inc BVH add support for visibility (activation) 2021-01-30 13:21:40 +00:00
bvh_tree.h BVH add support for visibility (activation) 2021-01-30 13:21:40 +00:00
camera_matrix.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
camera_matrix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
delaunay.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
disjoint_set.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
disjoint_set.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
expression.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
expression.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
face3.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
face3.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
geometry.cpp CPU lightmapper formatting and minor fixes. 2021-01-14 18:08:33 +01:00
geometry.h Implement new CPU lightmapper 2021-01-14 18:05:56 +01:00
math_defs.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_fieldwise.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_fieldwise.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_funcs.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_funcs.h GDScript: Clarified/fixed inaccuracies in the built-in function docs. 2021-02-11 13:12:06 +01:00
octree.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
octree_definition.inc Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
plane.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
plane.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
quat.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
quat.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
quick_hull.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
quick_hull.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
random_number_generator.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
random_number_generator.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
random_pcg.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
random_pcg.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rect2.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rect2.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
transform.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
transform.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
transform_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
transform_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangle_mesh.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangle_mesh.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangulate.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangulate.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vector2.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vector2.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vector3.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vector3.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00