X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Futil.qh;h=8abd36ece058ad5aab4e9a8499141a462722833b;hp=3ce173bf638e95d705a70042fc6bfae62f4838aa;hb=cfdec7de4f6fff90a2142be820eaeb43a5f7f572;hpb=e55b0af41ff296efc886dfaccf3f663f751f6502 diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 3ce173bf63..8abd36ece0 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -79,6 +79,7 @@ string mmssss(float t); string ScoreString(float vflags, float value); +float dotproduct(vector a, vector b); vector cross(vector a, vector b); void compressShortVector_init(); @@ -321,8 +322,6 @@ void queue_to_execute_next_frame(string s); // for marking written-to values as unused where it's a good idea to do this noref float unused_float; - - // a function f with: // f(0) = 0 // f(1) = 1 @@ -334,3 +333,7 @@ float cubic_speedfunc(float startspeedfactor, float endspeedfactor, float x); // because if this is the case, the function is not usable for platforms // as it may exceed 0..1 bounds, or go in reverse float cubic_speedfunc_is_sane(float startspeedfactor, float endspeedfactor); + +#ifndef MENUQC +vector W_CalculateSpread(vector forward, float spread, float spreadfactor, float spreadstyle) +#endif