UKismetMathLibrary::Vector_UnitCartesianToSpherical

Converts a Cartesian unit vector into spherical coordinates on the unit sphere.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h

Include

#include "Kismet/KismetMathLibrary.h"

Source

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl

Syntax

static FVector2D Vector_UnitCartesianToSpherical
(
    FVector A
)

Remarks

Converts a Cartesian unit vector into spherical coordinates on the unit sphere.

Returns

Output Theta will be in the range [0, PI], and output Phi will be in the range [-PI, PI].

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss