X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Flib%2Fp2mathlib.qh;h=898d6ca1ceae2c3a2338a92d88e1397ce5a6e59a;hp=78743d6ed483039056d23f47bc76ab01f05be175;hb=1b0decb9afb829407eae763b3053a122e2ae3de6;hpb=f41d9f31538bef0259d2b2c74536bb977901f99d diff --git a/qcsrc/lib/p2mathlib.qh b/qcsrc/lib/p2mathlib.qh index 78743d6ed..898d6ca1c 100644 --- a/qcsrc/lib/p2mathlib.qh +++ b/qcsrc/lib/p2mathlib.qh @@ -19,17 +19,25 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +ERASEABLE vector vec_bias(vector v, float f); +ERASEABLE vector vec_to_min(vector a, vector b); +ERASEABLE vector vec_to_max(vector a, vector b); // there may already be a function for bounding a vector in this manner, however my very quick search did not reveal one -- Player_2 +ERASEABLE vector vec_bounds_in(vector point, vector a, vector b); +ERASEABLE vector vec_bounds_out(vector point, vector a, vector b); +ERASEABLE float angle_snap_f(float f, float increment); +ERASEABLE vector angle_snap_vec(vector v, float increment); -vector aim_vec(vector origin, vector target); +ERASEABLE +vector aim_vec(vector org, vector targ);