Core: Bearing renamed to Direction (because of conflict with GEO bearing name)

git-svn-id: svn://ultimatepp.org/upp/trunk@12026 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-06-28 17:51:52 +00:00
parent 1e14428a96
commit 7028c19d8d
3 changed files with 6 additions and 4 deletions

View file

@ -156,7 +156,7 @@ Pointf Polar(const Pointf& p, double r, double a)
return p + r * Polar(a);
}
double Bearing(const Pointf& p)
double Direction(const Pointf& p)
{
return atan2(p.y, p.x);
}

View file

@ -733,8 +733,12 @@ Pointf Mid(const Pointf& a, const Pointf& b);
Pointf Orthogonal(const Pointf& p);
double Squared(const Pointf& p);
double Length(const Pointf& p);
double Bearing(const Pointf& p);
double Direction(const Pointf& p);
double Distance(const Pointf& p1, const Pointf& p2);
double SquaredDistance(const Pointf& p1, const Pointf& p2);
Pointf Polar(double a);
Pointf Polar(const Pointf& p, double r, double a);
// deprecated because of confusing name:
inline double Bearing(const Pointf& p) { return Direction(p); }

View file

@ -1,7 +1,5 @@
description "Box2D\3770,128,128";
optimize_speed;
file
Box2D.h,
Collision readonly separator,