|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "lib/float.qh"Go to the source code of this file.
Macros | |
| #define | MEAN_ACCUMULATE(s, prefix, v, w) |
| #define | MEAN_DECLARE(prefix, m) |
| #define | MEAN_EVALUATE(s, prefix) |
| #define | power2of(e) |
| #define MEAN_ACCUMULATE | ( | s, | |
| prefix, | |||
| v, | |||
| w ) |
Definition at line 22 of file math.qh.
Referenced by anticheat_physics().
| #define MEAN_DECLARE | ( | prefix, | |
| m ) |
| #define MEAN_EVALUATE | ( | s, | |
| prefix ) |
Definition at line 226 of file math.qh.
References fabs(), FLOAT_EPSILON, and max().
Referenced by DamageText::DamageText_update(), and MUTATOR_HOOKFUNCTION().
Definition at line 233 of file math.qh.
References max(), and median().
Referenced by Slider::mousePress(), Slider_draw(), Slider_keyDown(), and Slider_valueToText().
Definition at line 111 of file math.qh.
References vector.
Referenced by Draw_ArcBeam(), and W_Arc_Beam_Think().
Definition at line 126 of file math.qh.
Referenced by SUB_CalcMove_controller_think().
Definition at line 135 of file math.qh.
Referenced by set_platmovetype().
Definition at line 241 of file math.qh.
References bound().
Referenced by fireBullet_falloff(), and W_Arc_Beam_Think().
continuous function mapping all reals into 0..1
Definition at line 207 of file math.qh.
References float2range11().
continuous function mapping all reals into -1..1
Definition at line 200 of file math.qh.
References fabs().
Referenced by float2range01(), and GetCurrentFov().
Definition at line 54 of file math.qh.
References rint().
Referenced by pathlib_astar(), pathlib_flynode(), pathlib_nodeatpoint(), pathlib_swimnode(), pathlib_walknode(), and pathlib_wateroutnode().
Definition at line 84 of file math.qh.
References f1, f2, and lerpratio().
Definition at line 105 of file math.qh.
References vector.
Referenced by antilag_takebackorigin().
Definition at line 98 of file math.qh.
References f1, f2, lerpvratio(), and vector.
Definition at line 251 of file math.qh.
| ERASEABLE float map_bound_ranges | ( | float | value, |
| float | src_min, | ||
| float | src_max, | ||
| float | dest_min, | ||
| float | dest_max ) |
Same as map_ranges except that values outside the source range are clamped to min or max.
Definition at line 372 of file math.qh.
References map_ranges().
Referenced by bobmodel_ofs(), DamageText::DamageText_update(), determine_force(), Handicap_UpdateHandicapLevel(), and HUD_Panel_HlCenterLine().
| ERASEABLE float map_ranges | ( | float | value, |
| float | src_min, | ||
| float | src_max, | ||
| float | dest_min, | ||
| float | dest_max ) |
Maps values between the src and dest range: src_min to dest_min, src_max to dest_max, values between them to the corresponding values between and extrapolates for values outside the range.
src_min and src_max must not be the same or division by zero occurs.
dest_max can be smaller than dest_min if you want the resulting range to be inverted, all values can be negative.
Definition at line 363 of file math.qh.
Referenced by map_bound_ranges().
Definition at line 213 of file math.qh.
References bound().
Referenced by almost_in_bounds(), Slider::mousePress(), Slider_keyDown(), XonoticSliderCheckBox_configureXonoticSliderCheckBox(), XonoticSliderCheckBox_draw(), and XonoticSliderCheckBox_setChecked().
ax^2 + bx + c = 0
Definition at line 304 of file math.qh.
References sqrt(), and vector.
Referenced by get_shotvelocity(), solve_shotdirection(), spiberbot_calcartillery(), StartFrame(), trigger_push_calculatevelocity(), and W_Devastator_SteerTo().