Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorHelpers.cpp
static float GetIconScale(const float distSq)
    {
        AZ_PROFILE_FUNCTION(AzToolsFramework);

        return s_iconMinScale +
            (s_iconMaxScale - s_iconMinScale) *
            (1.0f - AZ::GetClamp(AZ::GetMax(0.0f, sqrtf(distSq) - s_iconCloseDist) / s_iconFarDist, 0.0f, 1.0f));
    }
// calculate the icon scale based on how far away it is (distanceSq) from a given point
// note: this is mostly likely distance from the camera
calculate the icon scale based on how far away it is (distanceSq) from a given point
note: this is mostly likely distance from the camera
calculate the icon scale based on how far away it is ( distanceSq ) from a given point note : this is mostly likely distance from the camera
static float GetIconScale(const float distSq)
    {
        AZ_PROFILE_FUNCTION(AzToolsFramework);
        return s_iconMinScale +
            (s_iconMaxScale - s_iconMinScale) *
            (1.0f - AZ::GetClamp(AZ::GetMax(0.0f, sqrtf(distSq) - s_iconCloseDist) / s_iconFarDist, 0.0f, 1.0f));
    }
static float GetIconScale ( const float distSq ) { AZ_PROFILE_FUNCTION ( AzToolsFramework ) ; return s_iconMinScale + ( s_iconMaxScale - s_iconMinScale ) * ( 1.0f - AZ :: GetClamp ( AZ :: GetMax ( 0.0f , sqrtf ( distSq ) - s_iconCloseDist ) / s_iconFarDist , 0.0f , 1.0f ) ) ; }
calculate the icon scale based on how far away it is (distanceSq) from a given point
note: this is mostly likely distance from the camera
calculate the icon scale based on how far away it is ( distanceSq ) from a given point note : this is mostly likely distance from the camera