diff options
| author | untodesu <kirill@untode.su> | 2025-06-25 00:44:36 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-06-25 00:44:36 +0500 |
| commit | 88c01588aa0830e219eaa62588839e4d1e2883ce (patch) | |
| tree | 602bb27dd3399aab4aae8c19630e3b7a8dac824b /core/vectors.hh | |
| parent | 99cf6cca8dbbc1e563c10cf0167432d3d8af9783 (diff) | |
| download | voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.tar.bz2 voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.zip | |
Clang-format the entire source code
Diffstat (limited to 'core/vectors.hh')
| -rw-r--r-- | core/vectors.hh | 16 |
1 files changed, 8 insertions, 8 deletions
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<typename value_type> -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<typename value_type> -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<typename value_type> -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<typename value_type> -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<typename value_type> -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<value_type>); return (vector.x * vector.x) + (vector.y * vector.y); } template<typename value_type> -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<value_type>); return (vector.x * vector.x) + (vector.y * vector.y) + (vector.z * vector.z); } template<typename value_type> -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<value_type>); return cxvectors::length2(vector_a - vector_b); } template<typename value_type> -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<value_type>); return cxvectors::length2(vector_a - vector_b); |
