summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-11 21:32:31 +0800
committerKeuin <[email protected]>2022-04-11 21:32:31 +0800
commitd10ff99fc9bee538ebc7da23ba2f8b476ef151e1 (patch)
treed9e4ee72127c6f1129eaa458f90045385dd4a610
parent32f44d39f01b62a51db177b6f3004ee0b835188d (diff)
Fix vec.h multiple inclusion.
-rw-r--r--vec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vec.h b/vec.h
index ad5f727..da7abeb 100644
--- a/vec.h
+++ b/vec.h
@@ -2,6 +2,9 @@
// Created by Keuin on 2022/4/11.
//
+#ifndef RT_VEC_H
+#define RT_VEC_H
+
#include <cmath>
static inline bool eq(int a, int b) {
@@ -116,3 +119,5 @@ using vec3f = vec3<float>;
// 3-dim vector (double)
using vec3d = vec3<double>;
+
+#endif //RT_VEC_H \ No newline at end of file