summaryrefslogtreecommitdiff
path: root/src/mbgl/text/placement_config.hpp
blob: c5c013055a9a19372b211de357d08bed7f85f286 (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
#pragma once

namespace mbgl {

class PlacementConfig {
public:
    PlacementConfig(float angle_ = 0, float pitch_ = 0, float cameraToCenterDistance_ = 0, float cameraToTileDistance_ = 0, bool debug_ = false)
        : angle(angle_), pitch(pitch_), cameraToCenterDistance(cameraToCenterDistance_), cameraToTileDistance(cameraToTileDistance_), debug(debug_) {
    }

    bool operator==(const PlacementConfig& rhs) const {
        return angle == rhs.angle && pitch == rhs.pitch && cameraToCenterDistance == rhs.cameraToCenterDistance && cameraToTileDistance == rhs.cameraToTileDistance && debug == rhs.debug;
    }

    bool operator!=(const PlacementConfig& rhs) const {
        return !operator==(rhs);
    }

public:
    float angle;
    float pitch;
    float cameraToCenterDistance;
    float cameraToTileDistance;
    bool debug;
};

} // namespace mbgl