godot/core/math
Rémi Verschelde 771b3c583d
Color: Fix -Wtype-limits GCC warning after refactoring
Warning from GCC 10.2.0 with `warnings=extra`:
```
./core/math/color.h: In member function 'int32_t Color::get_r8() const':
./core/typedefs.h:107:42: error: comparison of unsigned expression in '< 0' is always false [-Werror=type-limits]
  107 | #define CLAMP(m_a, m_min, m_max) (((m_a) < (m_min)) ? (m_min) : (((m_a) > (m_max)) ? m_max : m_a))
      |                                    ~~~~~~^~~~~~~~~
./core/math/color.h:201:49: note: in expansion of macro 'CLAMP'
  201 |  _FORCE_INLINE_ int32_t get_r8() const { return CLAMP(uint32_t(r * 255.0), 0, 255); }
      |                                                 ^~~~~
```

Also some code consistency changes while at it.
2020-11-09 14:11:21 +01:00
..
a_star.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
a_star.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
aabb.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
aabb.h Refactored variant setters/getters 2020-11-07 15:16:15 -03:00
audio_frame.h Ensure assignment operators return by reference to avoid unnecessary copies. 2020-09-04 09:18:19 +01:00
basis.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
basis.h Remove redundant is_equal_approx_ratio method 2020-09-23 00:28:49 -04:00
camera_matrix.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
camera_matrix.h Added volumetric fog effect. 2020-08-13 11:28:45 -03:00
color.cpp Color: Fix -Wtype-limits GCC warning after refactoring 2020-11-09 14:11:21 +01:00
color.h Color: Fix -Wtype-limits GCC warning after refactoring 2020-11-09 14:11:21 +01:00
color_names.inc Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
delaunay_2d.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
delaunay_3d.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
disjoint_set.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
expression.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
expression.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
face3.cpp Split Geometry singleton into Geometry2D and Geometry3D 2020-05-27 14:28:34 +03:00
face3.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
geometry_2d.cpp Style: Fix copyright headers 2020-06-25 16:33:44 +02:00
geometry_2d.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
geometry_3d.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
geometry_3d.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
math_defs.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
math_fieldwise.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
math_fieldwise.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
math_funcs.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
math_funcs.h Exposed randi_range to global funcs + renamed rand_range to randf_range 2020-11-06 17:06:26 +03:00
octree.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
plane.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
plane.h Refactored binding system for core types 2020-10-14 15:24:30 +02:00
quat.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
quat.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
quick_hull.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
quick_hull.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
random_number_generator.cpp doc: Override default value for RandomNumberGenerator.seed 2020-11-05 00:41:24 +01:00
random_number_generator.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
random_pcg.cpp Exposed randi_range to global funcs + renamed rand_range to randf_range 2020-11-06 17:06:26 +03:00
random_pcg.h Exposed randi_range to global funcs + renamed rand_range to randf_range 2020-11-06 17:06:26 +03:00
rect2.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
rect2.h Refactored variant setters/getters 2020-11-07 15:16:15 -03:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
transform.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
transform.h Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
transform_2d.cpp Simplify Transform2D get_rotation 2020-06-17 01:00:42 -04:00
transform_2d.h Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
triangle_mesh.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
triangle_mesh.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
triangulate.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
triangulate.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
vector2.cpp Refactored Variant Operators. 2020-11-06 12:45:50 -03:00
vector2.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
vector3.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
vector3.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
vector3i.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
vector3i.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00