mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Point: Disable rotatedAroundOrigin for non-floating-point types
This function cant't give useful results for integer points.
This commit is contained in:
parent
a0c9a42dbf
commit
c728d8509d
1 changed files with 1 additions and 0 deletions
|
|
@ -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 <typename T = ValueType, std::enable_if_t<std::is_floating_point_v<T>, int> = 0>
|
||||
Point rotatedAboutOrigin (ValueType angleRadians) const noexcept
|
||||
{
|
||||
return Point (x * std::cos (angleRadians) - y * std::sin (angleRadians),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue