RealDocs

UKismetMathLibrary::DegAsin

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns the inverse sine (arc sine) of A in degrees. The result is in the range [-90, 90].

Caveats & Gotchas

  • Input must be in [-1, 1]; floating-point dot products or normalized vectors can exceed this range by tiny amounts, producing NaN — clamp the input before calling.
  • The output range is [-90°, 90°], which does not cover the full circle; if you need the angle in a wider context use DegAtan2 with a quadrant-awareness approach.

Signature

static UE_INL_API double DegAsin(double A);

Parameters

Name Type Description Default
A double Value in the range [-1, 1] to compute the arc sine of.

Return Type

double

Example

Pitch angle of a direction vector C++
FVector Dir = (TargetLocation - EyeLocation).GetSafeNormal();
double PitchDeg = UKismetMathLibrary::DegAsin(FMath::Clamp(Dir.Z, -1.0, 1.0));

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.