|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | M_PI 3.14159265358979323846 |
| pi | |
Variables | |
| const int | FP_INFINITE = 1 |
| const int | FP_NAN = 0 |
| const int | FP_NORMAL = 4 |
| const int | FP_SUBNORMAL = 3 |
| const int | FP_ZERO = 2 |
| const float | M_1_PI = 0.31830988618379067154 |
| 1/pi | |
| const float | M_2_PI = 0.63661977236758134308 |
| 2/pi | |
| const float | M_2_SQRTPI = 1.12837916709551257390 |
| 2/sqrt(pi) | |
| const float | M_E = 2.7182818284590452354 |
| e | |
| const float | M_LN10 = 2.30258509299404568402 |
| log_e 10 | |
| const float | M_LN2 = 0.69314718055994530942 |
| log_e 2 | |
| const float | M_LOG10E = 0.43429448190325182765 |
| log_10 e | |
| const float | M_LOG2E = 1.4426950408889634074 |
| log_2 e | |
| const float | M_PI_2 = 1.57079632679489661923 |
| pi/2 | |
| const float | M_PI_4 = 0.78539816339744830962 |
| pi/4 | |
| const float | M_SQRT1_2 = 0.70710678118654752440 |
| 1/sqrt(2) | |
| const float | M_SQRT2 = 1.41421356237309504880 |
| sqrt(2) | |
| #define M_PI 3.14159265358979323846 |
pi
Definition at line 112 of file mathlib.qh.
Referenced by anticheat_physics(), blink_synced(), Button_draw(), colormapPaletteColor_(), Cosine_Interpolate(), CSQCPlayer_ApplyBobbing(), decompressShortVector(), Draw_WaypointSprite(), DrawAmmoNades(), DrawCircleClippedPic(), GameCommand_trace(), GetCurrentFov(), GetOrthoviewFOV(), GetViewLocationFOV(), gsl_ran_ugaussian(), HUD_Damage(), HUD_Get_Num_Color(), HUD_Mod_KH(), HUD_StrafeHUD(), lgamma(), movement_oddity(), nade_darkness_think(), nade_ice_think(), ons_Teleport(), orb_setup(), pong_ball_throw(), pong_paddle_bounce(), prandom(), Rotate(), Scoreboard_DrawItem(), Scoreboard_DrawOthers(), Scoreboard_GetName(), smneg_multiplier(), solve_cubic_pq(), spawnfunc(), turret_draw2d(), W_CalculateSpread(), and waypoint_getSymmetricalPoint().
Definition at line 53 of file mathlib.qc.
References log().
Definition at line 129 of file mathlib.qc.
References copysign(), fabs(), and pow.
Referenced by solve_cubic_pq().
Definition at line 220 of file mathlib.qc.
References fabs().
Referenced by AdjustAirAccelQW(), cbrt(), erf(), lgamma(), target_speed_calculatevelocity(), and trigger_push_velocity_calculatevelocity().
Definition at line 138 of file mathlib.qc.
References copysign(), exp(), and sqrt().
Referenced by erfc().
Definition at line 144 of file mathlib.qc.
References erf().
Definition at line 70 of file mathlib.qc.
Referenced by anticheat_physics(), bobmodel_ofs(), cosh(), erf(), expm1(), fromDecibelOfSquare(), GenericCommand_rpn(), GetCurrentFov(), ListBox_draw(), nade_darkness_think(), nade_ice_think(), sinh(), tgamma(), and toDecibelOfSquare().
Definition at line 267 of file mathlib.qc.
Definition at line 203 of file mathlib.qc.
References trunc().
Referenced by CSQCModel_Effects_Apply().
Definition at line 3 of file mathlib.qc.
References FP_INFINITE, FP_NAN, FP_NORMAL, FP_ZERO, isinf(), and isnan().
Returns mantissa as .x, exponent as .y.
Definition at line 83 of file mathlib.qc.
Definition at line 13 of file mathlib.qc.
References isinf(), and isnan().
Referenced by isnormal(), and lgamma().
Definition at line 272 of file mathlib.qc.
Definition at line 276 of file mathlib.qc.
Definition at line 17 of file mathlib.qc.
Referenced by fpclassify(), and isfinite().
Definition at line 280 of file mathlib.qc.
Definition at line 284 of file mathlib.qc.
Definition at line 288 of file mathlib.qc.
Definition at line 21 of file mathlib.qc.
Referenced by fpclassify(), is_all_nans(), isfinite(), PlayerJump(), and StrafeHUD_DetermineHudAngle().
Definition at line 36 of file mathlib.qc.
References isfinite().
Definition at line 292 of file mathlib.qc.
Definition at line 95 of file mathlib.qc.
Value in .x, sign in .y.
Definition at line 148 of file mathlib.qc.
References copysign(), fabs(), floor(), isfinite(), lgamma(), log(), M_PI, nan(), sin(), and vector.
Definition at line 103 of file mathlib.qc.
Definition at line 111 of file mathlib.qc.
Definition at line 99 of file mathlib.qc.
References log().
Referenced by buff_Inferno_CalculateTime().
Definition at line 225 of file mathlib.qc.
References sqrt().
Referenced by lgamma(), and nextafter().
Definition at line 229 of file mathlib.qc.
References fabs(), max(), nan(), and nextafter().
Referenced by nextafter(), and nexttoward().
Definition at line 250 of file mathlib.qc.
References nextafter().
Pythonic mod: TODO: %% operator?
1 % 2 == 1 -1 % 2 == 1 1 % -2 == -1 -1 % -2 == -1
Definition at line 189 of file mathlib.qc.
References floor().
Referenced by PRECACHE(), and tubasound().
Definition at line 207 of file mathlib.qc.
References rint().
Referenced by func_pendulum_controller_think(), and IsMoveInDirection().
Definition at line 40 of file mathlib.qc.
Referenced by trigger_push_velocity_calculatevelocity().
Definition at line 65 of file mathlib.qc.
References cosh(), and sinh().
Referenced by ctf_CalculatePassVelocity().
| const int FP_INFINITE = 1 |
Definition at line 9 of file mathlib.qh.
Referenced by fpclassify().
| const int FP_NAN = 0 |
Definition at line 8 of file mathlib.qh.
Referenced by fpclassify().
| const int FP_NORMAL = 4 |
Definition at line 12 of file mathlib.qh.
Referenced by fpclassify().
| const int FP_SUBNORMAL = 3 |
Definition at line 11 of file mathlib.qh.
| const int FP_ZERO = 2 |
Definition at line 10 of file mathlib.qh.
Referenced by fpclassify().
| const float M_1_PI = 0.31830988618379067154 |
1/pi
Definition at line 115 of file mathlib.qh.
| const float M_2_PI = 0.63661977236758134308 |
2/pi
Definition at line 116 of file mathlib.qh.
| const float M_2_SQRTPI = 1.12837916709551257390 |
2/sqrt(pi)
Definition at line 117 of file mathlib.qh.
| const float M_E = 2.7182818284590452354 |
| const float M_LN10 = 2.30258509299404568402 |
log_e 10
Definition at line 109 of file mathlib.qh.
| const float M_LN2 = 0.69314718055994530942 |
log_e 2
Definition at line 108 of file mathlib.qh.
| const float M_LOG10E = 0.43429448190325182765 |
| const float M_LOG2E = 1.4426950408889634074 |
| const float M_PI_2 = 1.57079632679489661923 |
pi/2
Definition at line 113 of file mathlib.qh.
Referenced by decompressShortVector(), HUD_Physics(), StrafeHUD_DrawTextIndicator(), and tubasound().
| const float M_PI_4 = 0.78539816339744830962 |
pi/4
Definition at line 114 of file mathlib.qh.
| const float M_SQRT1_2 = 0.70710678118654752440 |
1/sqrt(2)
Definition at line 119 of file mathlib.qh.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| const float M_SQRT2 = 1.41421356237309504880 |
sqrt(2)
Definition at line 118 of file mathlib.qh.
Referenced by drawspritearrow(), and havocbot_movetogoal().