summaryrefslogtreecommitdiffstats
path: root/core/vectors.hh
diff options
context:
space:
mode:
Diffstat (limited to 'core/vectors.hh')
-rw-r--r--core/vectors.hh16
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);