From 88c01588aa0830e219eaa62588839e4d1e2883ce Mon Sep 17 00:00:00 2001 From: untodesu Date: Wed, 25 Jun 2025 00:44:36 +0500 Subject: Clang-format the entire source code --- core/vectors.hh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'core/vectors.hh') diff --git a/core/vectors.hh b/core/vectors.hh index e6e185a..86263b7 100644 --- a/core/vectors.hh +++ b/core/vectors.hh @@ -9,38 +9,38 @@ namespace cxvectors { template -constexpr static inline const value_type length2(const glm::vec<2, value_type> &vector); +constexpr static inline const value_type length2(const glm::vec<2, value_type>& vector); template -constexpr static inline const value_type length2(const glm::vec<3, value_type> &vector); +constexpr static inline const value_type length2(const glm::vec<3, value_type>& vector); template -constexpr static inline const value_type distance2(const glm::vec<2, value_type> &vector_a, const glm::vec<2, value_type> &vector_b); +constexpr static inline const value_type distance2(const glm::vec<2, value_type>& vector_a, const glm::vec<2, value_type>& vector_b); template -constexpr static inline const value_type distance2(const glm::vec<3, value_type> &vector_a, const glm::vec<3, value_type> &vector_b); +constexpr static inline const value_type distance2(const glm::vec<3, value_type>& vector_a, const glm::vec<3, value_type>& vector_b); } // namespace cxvectors template -constexpr static inline const value_type cxvectors::length2(const glm::vec<2, value_type> &vector) +constexpr static inline const value_type cxvectors::length2(const glm::vec<2, value_type>& vector) { static_assert(std::is_arithmetic_v); return (vector.x * vector.x) + (vector.y * vector.y); } template -constexpr static inline const value_type cxvectors::length2(const glm::vec<3, value_type> &vector) +constexpr static inline const value_type cxvectors::length2(const glm::vec<3, value_type>& vector) { static_assert(std::is_arithmetic_v); return (vector.x * vector.x) + (vector.y * vector.y) + (vector.z * vector.z); } template -constexpr static inline const value_type cxvectors::distance2(const glm::vec<2, value_type> &vector_a, const glm::vec<2, value_type> &vector_b) +constexpr static inline const value_type cxvectors::distance2(const glm::vec<2, value_type>& vector_a, const glm::vec<2, value_type>& vector_b) { static_assert(std::is_arithmetic_v); return cxvectors::length2(vector_a - vector_b); } template -constexpr static inline const value_type cxvectors::distance2(const glm::vec<3, value_type> &vector_a, const glm::vec<3, value_type> &vector_b) +constexpr static inline const value_type cxvectors::distance2(const glm::vec<3, value_type>& vector_a, const glm::vec<3, value_type>& vector_b) { static_assert(std::is_arithmetic_v); return cxvectors::length2(vector_a - vector_b); -- cgit