UKismetMathLibrary::DegAtan
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPureUFUNCTION
Description
Returns the inverse tangent (arctangent) of A, with the result in degrees. Useful for recovering an angle from a slope or ratio.
Caveats & Gotchas
- • The result is always in the range -90 to +90 degrees. If you need the full four-quadrant angle use DegAtan2 instead.
- • The parameter is a tangent ratio, not an angle — passing degrees to this function will give meaningless output.
Signature
static UE_INL_API double DegAtan(double A); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | double | Tangent value to invert. | — |
Return Type
double Example
Recover angle from slope C++
double Slope = 1.0;
double AngleDeg = UKismetMathLibrary::DegAtan(Slope); // ~45 degrees Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?