Home
last modified time | relevance | path

Searched refs:anchorDistance (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/text/
H A Dcheck_max_angle.cpp27 float anchorDistance = 0; in checkMaxAngle() local
30 while (anchorDistance > -labelLength / 2) { in checkMaxAngle()
36 anchorDistance -= util::dist<float>(line[index], p); in checkMaxAngle()
40 anchorDistance += util::dist<float>(line[index], line[index + 1]); in checkMaxAngle()
48 while (anchorDistance < labelLength / 2) { in checkMaxAngle()
61 recentCorners.emplace(anchorDistance, angleDelta); in checkMaxAngle()
65 while (anchorDistance - recentCorners.front().distance > windowSize) { in checkMaxAngle()
74 anchorDistance += util::dist<float>(current, next); in checkMaxAngle()
H A Dcollision_feature.cpp64 float anchorDistance = firstBoxOffset; in bboxifyLabel() local
73 if (anchorDistance > labelStartDistance) { in bboxifyLabel()
85 anchorDistance -= util::dist<float>(line[index], p); in bboxifyLabel()
87 } while (anchorDistance > paddingStartDistance); in bboxifyLabel()
100 if (boxDistanceToAnchor < anchorDistance) { in bboxifyLabel()
107 while (anchorDistance + segmentLength < boxDistanceToAnchor) { in bboxifyLabel()
108 anchorDistance += segmentLength; in bboxifyLabel()
118 const float segmentBoxDistance = boxDistanceToAnchor - anchorDistance; in bboxifyLabel()