mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
(badly) ported dsp's pathfind code
- added distance for vectors - todo: why does it go retard
This commit is contained in:
@@ -379,6 +379,16 @@ namespace FFXIVClassic.Common
|
||||
return value;
|
||||
}
|
||||
|
||||
public static float DistanceSquared(Vector3 lhs, Vector3 rhs)
|
||||
{
|
||||
return DistanceSquared(lhs.X, lhs.Y, lhs.Z, rhs.X, rhs.Y, rhs.Z);
|
||||
}
|
||||
|
||||
public static float Distance(Vector3 lhs, Vector3 rhs)
|
||||
{
|
||||
return Distance(lhs.X, lhs.Y, lhs.Z, rhs.X, rhs.Y, rhs.Z);
|
||||
}
|
||||
|
||||
public static float Distance(float x, float y, float z, float x2, float y2, float z2)
|
||||
{
|
||||
if (x == x2 && y == y2 && z == z2)
|
||||
|
Reference in New Issue
Block a user