mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-08-21 04:11:57 +02:00
fixes overload issue with 'std::hypot' with older gcc (Xcode 3.2)
This commit is contained in:
parent
3a55234436
commit
51afe69864
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ namespace starfield {
|
|||
vec3 ahead = swizzle<X,Y,Z>( column(matrix, 2) );
|
||||
|
||||
float azimuth = atan2(ahead.x,-ahead.z) + Radians::pi();
|
||||
float altitude = atan2(-ahead.y, hypot(ahead.x, ahead.z));
|
||||
float altitude = atan2(-ahead.y, hypotf(ahead.x, ahead.z));
|
||||
angleHorizontalPolar<Radians>(azimuth, altitude);
|
||||
#if STARFIELD_HEMISPHERE_ONLY
|
||||
altitude = std::max(0.0f, altitude);
|
||||
|
|
Loading…
Reference in a new issue