From 91b5a0afdda3067e49ba330e82e2f64b2b1960b5 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 2 Mar 2023 23:25:38 +0100 Subject: [PATCH] :zap: Add missing type hints on matrix type functions --- common/src/app/common/geom/matrix.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/geom/matrix.cljc b/common/src/app/common/geom/matrix.cljc index 01ee53c9db..78dc7900db 100644 --- a/common/src/app/common/geom/matrix.cljc +++ b/common/src/app/common/geom/matrix.cljc @@ -72,7 +72,7 @@ (apply matrix params))) (defn close? - [m1 m2] + [^Matrix m1 ^Matrix m2] (and (mth/close? (.-a m1) (.-a m2)) (mth/close? (.-b m1) (.-b m2)) (mth/close? (.-c m1) (.-c m2)) @@ -80,7 +80,7 @@ (mth/close? (.-e m1) (.-e m2)) (mth/close? (.-f m1) (.-f m2)))) -(defn unit? [m1] +(defn unit? [^Matrix m1] (and (some? m1) (mth/close? (.-a m1) 1) (mth/close? (.-b m1) 0)