[core] Use geometry.hpp's point

This commit is contained in:
John Firebaugh
2016-03-16 17:45:00 -07:00
parent f89cfacab2
commit 9330d674a9
41 changed files with 264 additions and 367 deletions

View File

@@ -19,7 +19,7 @@ bool checkMaxAngle(const GeometryCoordinates &line, Anchor &anchor, const float
// horizontal labels always pass
if (anchor.segment < 0) return true;
GeometryCoordinate anchorPoint = { (int16_t)anchor.x, (int16_t)anchor.y };
GeometryCoordinate anchorPoint = convertPoint<int16_t>(anchor.point);
GeometryCoordinate &p = anchorPoint;
int index = anchor.segment + 1;
float anchorDistance = 0;