From e07486ef63daff589a104e552f3b116446aad97d Mon Sep 17 00:00:00 2001 From: oakes Date: Wed, 15 Jan 2014 16:42:18 -0500 Subject: [PATCH] Add math --- src/play_clj/math.clj | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/play_clj/math.clj diff --git a/src/play_clj/math.clj b/src/play_clj/math.clj new file mode 100644 index 0000000..abd9934 --- /dev/null +++ b/src/play_clj/math.clj @@ -0,0 +1,8 @@ +(ns play-clj.math + (:import [com.badlogic.gdx.math Vector2 Vector3])) + +(defn vector + ([x y] + (Vector2. x y)) + ([x y z] + (Vector3. x y z)))