Is this expected? I realize that the whole purpose of the method is to clamp an angle, but you might want to use this method and then allow the min&max defined to full spectrum based on some settings.
This means that the minimum value should be less than the maximum (and this should be obvious) but you can definitely use negative values in the clamp angle node
This doesn’t work because +180 and 180 are the same angle value, the same happens with 0 and 360. So 8 is clearly NOT in the interval because the interval is 0 degrees wide😅
This example really doesn’t make sense to me, this interval is 3 degrees wide (179, 180 and 181), so it will be clamped to the closest value to 8, 179 indeed. (try clamping a value bigger than 181 and less than 360 and it will return 181 because it’s the closest value)
This is the only correct example, because you are using an interval of 259.9 degrees, it would have worked even with 0 and 359.9 (but it doesn’t really make sense to clamp an angle to a 360 degrees interval, because 560 for example is already converted to 200 automatically if you input it in a rotator value).
I was of course going off route to see why the original -180to +180 example didn’t work, I didn’t expect the other examples to work, rather, see what would happen.
It is a pity that this method doesn’t allow to be used with the full angle spectre, because then it cannot be used with a setting that would decide not to clamp it.
Thank you for your time @Ares9323! Super explanation.
@Ares9323 Thanks a lot for the detailed input and for the time you took to do all of that!!!
I’m not arguing with you, indeed my picture shows the Output range of that BP node.
The only thing I meant by my comment was that the initial statement “-180 is the same angle as +180” is “true” from a trigonometrical point of view, but also “false” in the sense that as a range, one would expect [-180, +180] to be 360 degrees wide, not 0, despite the angles themselves coinciding on the circle. And Epic also used that vocabulary to indicate such an expectation. Hope I was clear enough, since such topics are quite hard to detail in words