summaryrefslogtreecommitdiff
path: root/src/mbgl/text/get_anchors.hpp
blob: 19938b666b6f6c2f574606409467a1ef0ee7f774 (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
29
#pragma once

#include <mbgl/geometry/anchor.hpp>
#include <mbgl/tile/geometry_tile_data.hpp>
#include <mbgl/util/math.hpp>

namespace mbgl {

Anchors getAnchors(const GeometryCoordinates& line,
                   float spacing,
                   float maxAngle,
                   float textLeft,
                   float textRight,
                   float iconLeft,
                   float iconRight,
                   float glyphSize,
                   float boxScale,
                   float overscaling);

optional<Anchor> getCenterAnchor(const GeometryCoordinates& line,
                                 float maxAngle,
                                 float textLeft,
                                 float textRight,
                                 float iconLeft,
                                 float iconRight,
                                 float glyphSize,
                                 float boxScale);

} // namespace mbgl