summaryrefslogtreecommitdiffstats
path: root/src/core/math/vectors.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-26 23:17:56 +0500
committeruntodesu <kirill@untode.su>2025-12-26 23:17:56 +0500
commit0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e (patch)
tree90ddefa28b40b6384dd9618bb7573704de2733a9 /src/core/math/vectors.hh
parent6bb4233d5b2a1688e63c947542e92ec5d5a857a6 (diff)
downloadvoxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.tar.bz2
voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.zip
Add include guards and header comments to sources
Diffstat (limited to 'src/core/math/vectors.hh')
-rw-r--r--src/core/math/vectors.hh13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/core/math/vectors.hh b/src/core/math/vectors.hh
index bc11dd0..2934bb6 100644
--- a/src/core/math/vectors.hh
+++ b/src/core/math/vectors.hh
@@ -1,11 +1,14 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: vectors.hh
+// Description: because NO ONE would POSSIBLY need integer-based distance calculations in a VOXEL game
+
+#ifndef CORE_MATH_VECTORS_HH
+#define CORE_MATH_VECTORS_HH
#pragma once
#include "core/math/concepts.hh"
-// core/vectors.hh - because NO ONE would POSSIBLY
-// need integer-based distance calculations in a
-// game about voxels. That would be INSANE! :D
-
namespace math
{
template<math::arithmetic T>
@@ -41,3 +44,5 @@ constexpr static inline const T math::distance2(const glm::vec<3, T>& vector_a,
{
return math::length2(vector_a - vector_b);
}
+
+#endif