summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/tracker-easy-api.cpp
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-12 23:42:43 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-12 23:42:43 +0200
commit9c40d1724bb2d564a734f6be7d6d91e7c5be64f7 (patch)
tree3aec914008aae3a880aa451af87e5d92e53e2b98 /tracker-easy/tracker-easy-api.cpp
parent47fcfa087fa7244c2f12af67dee83d16a6d44775 (diff)
Easy Tracker: Renaming coordinates utility class.
Diffstat (limited to 'tracker-easy/tracker-easy-api.cpp')
-rw-r--r--tracker-easy/tracker-easy-api.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-easy/tracker-easy-api.cpp b/tracker-easy/tracker-easy-api.cpp
index 32663a6a..aaeb0631 100644
--- a/tracker-easy/tracker-easy-api.cpp
+++ b/tracker-easy/tracker-easy-api.cpp
@@ -22,12 +22,12 @@ f pt_point_extractor::threshold_radius_value(int w, int h, int threshold)
return radius;
}
-std::tuple<f, f> pt_pixel_pos_mixin::to_pixel_pos(f x, f y, int w, int h)
+std::tuple<f, f> Coordinates::to_pixel_pos(f x, f y, int w, int h)
{
return std::make_tuple(w*(x+f{.5}), f{.5}*(h - 2*y*w));
}
-std::tuple<f, f> pt_pixel_pos_mixin::to_screen_pos(f px, f py, int w, int h)
+std::tuple<f, f> Coordinates::to_screen_pos(f px, f py, int w, int h)
{
px *= w/(w-f{1}); py *= h/(h-f{1});
return std::make_tuple((px - w/f{2})/w, -(py - h/f{2})/w);