worked on grid-walker v3

This commit is contained in:
k-a-z-u
2017-10-24 16:48:56 +02:00
parent 3e31f6da53
commit 81b6b2c96c
8 changed files with 668 additions and 370 deletions

View File

@@ -27,6 +27,11 @@ public:
Assert::isBetween(rad, 0.0f, (float)_2PI, "radians out of bounds");
}
/** ctor from(x,y) -> to(x,y) */
Heading(const Point2 from, const Point2 to) : Heading(from.x, from.y, to.x, to.y) {
;
}
/** POSITIVE angular difference [0:PI] */
float getDiffHalfRAD(const Heading other) const {
return Angle::getDiffRAD_2PI_PI(rad, other.rad);