From c728d8509dcefcf6be4448dcb4fcb1dfd7c2f127 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 29 Apr 2024 16:03:44 +0100 Subject: [PATCH] Point: Disable rotatedAroundOrigin for non-floating-point types This function cant't give useful results for integer points. --- modules/juce_graphics/geometry/juce_Point.h | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/juce_graphics/geometry/juce_Point.h b/modules/juce_graphics/geometry/juce_Point.h index 609339989b..78b77a94d8 100644 --- a/modules/juce_graphics/geometry/juce_Point.h +++ b/modules/juce_graphics/geometry/juce_Point.h @@ -195,6 +195,7 @@ public: /** Returns the point that would be reached by rotating this point clockwise about the origin by the specified angle. */ + template , int> = 0> Point rotatedAboutOrigin (ValueType angleRadians) const noexcept { return Point (x * std::cos (angleRadians) - y * std::sin (angleRadians),