aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/affine.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/affine.lisp')
-rw-r--r--src/core/affine.lisp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/affine.lisp b/src/core/affine.lisp
index 7cfb805..671c184 100644
--- a/src/core/affine.lisp
+++ b/src/core/affine.lisp
@@ -87,3 +87,6 @@
(mat:m* m (vec:vec (+ x w) y 0.0 1.0))
(mat:m* m (vec:vec x y 0.0 1.0))))))))
+(defun units-intersect-p (au1 au2)
+ "Returns T if the two units AU1 an AU2 intersect. Both must implement GET-RECT."
+ (paths-intersect-p (get-rect au1) (get-rect au2)))