Skip to content
Snippets Groups Projects
Commit 0e6476f7 authored by Lukas Werner's avatar Lukas Werner
Browse files

Use std::floor

parent b77ab026
No related merge requests found
......@@ -36,7 +36,7 @@ Color Color::colorFromHSV(real_t hue, real_t saturation, real_t value) {
} else {
hue /= real_t(60);
}
real_t fract = hue - floor(hue);
real_t fract = hue - std::floor(hue);
real_t P = value*(real_t(1) - saturation);
real_t Q = value*(real_t(1) - saturation*fract);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment