blob: 6680f524498c9f0c7b07b2df4333e6092e4797c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef MBGL_TEXT_PLACEMENT_CONFIG
#define MBGL_TEXT_PLACEMENT_CONFIG
namespace mbgl {
class PlacementConfig {
public:
inline PlacementConfig(float angle_ = 0, float pitch_ = 0, bool debug_ = false)
: angle(angle_), pitch(pitch_), debug(debug_) {
}
inline bool operator==(const PlacementConfig& rhs) const {
return angle == rhs.angle && pitch == rhs.pitch && debug == rhs.debug;
}
inline bool operator!=(const PlacementConfig& rhs) const {
return !operator==(rhs);
}
public:
float angle;
float pitch;
bool debug;
};
} // namespace mbgl
#endif
|