]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/p2mathlib.qh
Merge branch 'master' into TimePath/scrollpanel
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / p2mathlib.qh
index c92f26a912f145ef42f3f8380533d58adaae10b4..898d6ca1ceae2c3a2338a92d88e1397ce5a6e59a 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /*
  Copyright (C) 2015 Micah Talkiewicz.
 
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 
+ERASEABLE
 vector vec_bias(vector v, float f);
 
 
-vector vec_to_min (vector a, vector b);
-vector vec_to_max (vector a, vector b);
+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
-vector vec_bounds_in (vector point, vector a, vector b);
-vector vec_bounds_out (vector point, vector a, vector b);
-
-float angle_snap_f (float f, float increment);
-vector angle_snap_vec (vector v,  float increment);
-
-vector aim_vec (vector origin, vector target);
+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);
+
+ERASEABLE
+vector aim_vec(vector org, vector targ);