diff options
| author | untodesu <kirill@untode.su> | 2025-12-26 23:17:56 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-12-26 23:17:56 +0500 |
| commit | 0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e (patch) | |
| tree | 90ddefa28b40b6384dd9618bb7573704de2733a9 /src/core/math/vectors.hh | |
| parent | 6bb4233d5b2a1688e63c947542e92ec5d5a857a6 (diff) | |
| download | voxelius-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.hh | 13 |
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 |
