From 0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e Mon Sep 17 00:00:00 2001 From: untodesu Date: Fri, 26 Dec 2025 23:17:56 +0500 Subject: Add include guards and header comments to sources --- src/core/math/vectors.hh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/core/math/vectors.hh') 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 @@ -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 -- cgit