summaryrefslogtreecommitdiff
path: root/include/mbgl/util
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-02-01 16:13:39 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-02-01 16:32:59 -0800
commit8aa3359ff00332ef17157bf3c4452e710cc10b23 (patch)
tree644d9dc9d415425f6a1ced45f6598194158b3c7f /include/mbgl/util
parent04cc019f54c9b821d287f1b679708955b6519fe1 (diff)
downloadqtlocation-mapboxgl-8aa3359ff00332ef17157bf3c4452e710cc10b23.tar.gz
[core] Don't use struct
It makes forward declarations inconsistent and liable to change, for no real gain.
Diffstat (limited to 'include/mbgl/util')
-rw-r--r--include/mbgl/util/geo.hpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/mbgl/util/geo.hpp b/include/mbgl/util/geo.hpp
index b16d51c026..8d7e7dae19 100644
--- a/include/mbgl/util/geo.hpp
+++ b/include/mbgl/util/geo.hpp
@@ -11,7 +11,8 @@ class TileID;
using PrecisionPoint = vec2<double>;
-struct LatLng {
+class LatLng {
+public:
double latitude = 0;
double longitude = 0;
@@ -28,7 +29,8 @@ struct LatLng {
PrecisionPoint project() const;
};
-struct ProjectedMeters {
+class ProjectedMeters {
+public:
double northing = 0;
double easting = 0;
@@ -40,7 +42,8 @@ struct ProjectedMeters {
}
};
-struct LatLngBounds {
+class LatLngBounds {
+public:
LatLng sw = {-90, -180};
LatLng ne = {90, 180};
@@ -88,7 +91,8 @@ struct LatLngBounds {
}
};
-struct MetersBounds {
+class MetersBounds {
+public:
ProjectedMeters sw;
ProjectedMeters ne;
@@ -109,7 +113,8 @@ enum class NorthOrientation : uint8_t {
};
/// The distance on each side between a rectangle and a rectangle within.
-struct EdgeInsets {
+class EdgeInsets {
+public:
double top = 0; ///< Number of pixels inset from the top edge.
double left = 0; ///< Number of pixels inset from the left edge.
double bottom = 0; ///< Number of pixels inset from the bottom edge.