[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

@@ -79,9 +79,6 @@ TEST(Transform, InvalidLatLng) {
ASSERT_DOUBLE_EQ(10, transform.getLatLng().latitude);
ASSERT_DOUBLE_EQ(8, transform.getLatLng().longitude);
ASSERT_DOUBLE_EQ(4, transform.getScale());
ASSERT_FALSE(transform.latLngToScreenCoordinate(LatLng::null()));
ASSERT_FALSE(transform.screenCoordinateToLatLng(ScreenCoordinate::null()));
}
@@ -225,7 +222,7 @@ TEST(Transform, Anchor) {
ASSERT_DOUBLE_EQ(10, transform.getZoom());
ASSERT_DOUBLE_EQ(0, transform.getAngle());
const ScreenCoordinate invalidAnchorPoint = ScreenCoordinate::null();
const optional<ScreenCoordinate> invalidAnchorPoint {};
const ScreenCoordinate anchorPoint = { 150, 150 };
const LatLng anchorLatLng = transform.getState().screenCoordinateToLatLng(anchorPoint);