1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +00:00

fix msvc build

This commit is contained in:
NotAdam 2019-06-02 21:39:37 +10:00
parent ccb83bec5d
commit b48525ef46
2 changed files with 3 additions and 2 deletions

View file

@ -17,7 +17,8 @@ float Util::distance( float x, float y, float z, float x1, float y1, float z1 )
return sqrtf( distanceSq( x, y, z, x1, y1, z1 ) );
}
float Util::distance( const Common::FFXIVARR_POSITION3& pos1, const Common::FFXIVARR_POSITION3& pos2 )
float Util::distance( const Sapphire::Common::FFXIVARR_POSITION3& pos1,
const Sapphire::Common::FFXIVARR_POSITION3& pos2 )
{
return sqrtf( distanceSq( pos1.x, pos1.y, pos1.z, pos2.x, pos2.y, pos2.z ) );
}

View file

@ -11,7 +11,7 @@ namespace Sapphire::Common::Util
float distanceSq( float x, float y, float z, float x1, float y1, float z1 );
float distance( float x, float y, float z, float x1, float y1, float z1 );
float distance( const Common::FFXIVARR_POSITION3& pos1, const Common::FFXIVARR_POSITION3& pos2 );
float distance( const Sapphire::Common::FFXIVARR_POSITION3& pos1, const Sapphire::Common::FFXIVARR_POSITION3& pos2 );
float distance2DSq( float x, float y, float x1, float y1 );