DegreesToRadians

lucasncv
Tue, 16 Dec 2014 19:33:24 +0000
C++

Hi, before 4.6 I could to this:

FVector2D AnglesDeg;
FVector2D AnglesRad = FMath::DegreesToRadians(AnglesDeg);

But now it seems the template version of FMath::DegreesToRadians only returns a float, so that gives an error.

template<class T>
static float RadiansToDegrees(T const& RadVal)

What’s the reasoning behind this change?

2 posts - 1 participant