From 7451bd8a3dc87ccfc2ec0fd59c576603c1e6d45d Mon Sep 17 00:00:00 2001 From: Garux Date: Mon, 28 Oct 2024 16:18:18 +0500 Subject: [PATCH] rename potentially conflicting vector3_max_component -> vector3_max_abs_component --- radiant/brush.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radiant/brush.h b/radiant/brush.h index c00bcfd3..abfdba72 100644 --- a/radiant/brush.h +++ b/radiant/brush.h @@ -173,12 +173,12 @@ inline void planepts_quantise( PlanePoints planepts, double snap ){ vector3_snap( planepts[2], snap ); } -inline float vector3_max_component( const Vector3& vec3 ){ +inline float vector3_max_abs_component( const Vector3& vec3 ){ return std::max( fabsf( vec3[0] ), std::max( fabsf( vec3[1] ), fabsf( vec3[2] ) ) ); } inline void edge_snap( Vector3& edge, double snap ){ - float scale = static_cast( ceil( fabs( snap / vector3_max_component( edge ) ) ) ); + float scale = static_cast( ceil( fabs( snap / vector3_max_abs_component( edge ) ) ) ); if ( scale > 0.0f ) { vector3_scale( edge, scale ); }