From 46fb0cce6da28fed2437158a74b6eb5e8f4687e1 Mon Sep 17 00:00:00 2001 From: oakes Date: Fri, 14 Feb 2014 00:33:29 -0500 Subject: [PATCH] Improve plane --- src/play_clj/math.clj | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/play_clj/math.clj b/src/play_clj/math.clj index 8ee887b..15b33e7 100644 --- a/src/play_clj/math.clj +++ b/src/play_clj/math.clj @@ -314,13 +314,15 @@ (defn plane* "The function version of `plane`" - [^Vector3 normal ^double d] - (Plane. normal d)) + ([arg1 arg2] + (Plane. arg1 arg2)) + ([^Vector3 p1 ^Vector3 p2 ^Vector3 p3] + (Plane. p1 p2 p3))) (defmacro plane "Returns a [Plane](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/Plane.html)" - [normal d & options] - `(u/calls! ^Plane (plane* ~normal ~d) ~@options)) + [args & options] + `(u/calls! ^Plane (apply plane* ~args) ~@options)) (defmacro plane! "Calls a single method on a `plane`"