RealDocs

UKismetMathLibrary::Vector_ToRadians

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

Description

Converts each component of a vector from degrees to radians, returning (X*PI/180, Y*PI/180, Z*PI/180). Useful when a vector is used to store Euler angles and you need radians for trigonometric functions.

Caveats & Gotchas

  • This is a pure component-wise multiply by PI/180. It has no special meaning for direction vectors — only use it when the vector actually stores degree values.
  • UE functions like FRotator and most rotation math use degrees internally. Only convert to radians when calling sin/cos/tan directly or passing to a radians-expecting API.
  • Pair with Vector_ToDegrees for the reverse conversion. Note that Vector_UnwindEuler operates in degrees, so unwind before converting.

Signature

static UE_INL_API FVector Vector_ToRadians(FVector A);

Parameters

Name Type Description Default
A FVector A vector whose components represent angles in degrees.

Return Type

FVector

Example

Convert a degree Euler vector before passing to FQuat C++
FVector EulerDegrees(45.f, 0.f, 90.f);
FVector EulerRadians = UKismetMathLibrary::Vector_ToRadians(EulerDegrees);
// Each component is now in radians for use with FMath::Sin/Cos etc.

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.