Concatenate

Is there eiser way to do this?

static const FSlateRenderTransform GENERATE_XFORM(float _ROTATION, FVector2D _SIZE) {
FVector2D TRANSLATION =
(_ROTATION == 0)
? FVector2D(0,0)
: (_ROTATION == 90)
? FVector2D(_SIZE.Y, 0)
: (_ROTATION == 180)
? FVector2D(_SIZE.X, _SIZE.Y)
: FVector2D(0, _SIZE.X);
return TransformCast(Concatenate(FQuat2D(_ROTATION * PI / 180), TRANSLATION));
}

And what should i do if i need to do this dynamicly with lerp? This blows my mind. My widgets are in wrong positions.