mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
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:
parent
1e14428a96
commit
7028c19d8d
3 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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); }
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
description "Box2D\3770,128,128";
|
||||
|
||||
optimize_speed;
|
||||
|
||||
file
|
||||
Box2D.h,
|
||||
Collision readonly separator,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue