mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 07:07:45 +00:00
fix msvc build
This commit is contained in:
parent
ccb83bec5d
commit
b48525ef46
2 changed files with 3 additions and 2 deletions
|
@ -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 ) );
|
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 ) );
|
return sqrtf( distanceSq( pos1.x, pos1.y, pos1.z, pos2.x, pos2.y, pos2.z ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace Sapphire::Common::Util
|
||||||
float distanceSq( float x, float y, float z, float x1, float y1, float z1 );
|
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( 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 );
|
float distance2DSq( float x, float y, float x1, float y1 );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue