diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-18 08:52:34 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-18 08:52:34 +0200 |
commit | 7df7c40a5d5eaed89fb89445348c3c7cdc8632e9 (patch) | |
tree | 49633cc6d74f4f46bb1cd9057570c6b34baa64db /pose-widget/pose-widget.cpp | |
parent | 39acca95501fa7b0d77f8e6d2cbf97f45cff4ebf (diff) |
many: use std::f{max,min} for floating-point values
Diffstat (limited to 'pose-widget/pose-widget.cpp')
-rw-r--r-- | pose-widget/pose-widget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp index 976bd981..aee2d628 100644 --- a/pose-widget/pose-widget.cpp +++ b/pose-widget/pose-widget.cpp @@ -355,7 +355,7 @@ vec2 pose_transform::project(const vec3 &point) using std::fabs; vec3 ret = rotation * point; - num z = std::max<num>(.5, 1 + translation.z()/-80); + num z = std::fmax(num(.5), 1 + translation.z()/-80); num w = width, h = height; num x = w * translation.x() / 2 / -80; if (fabs(x) > w/2) |