FVector::UnitCartesianToSpherical

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

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Vector.h

Include

#include "Math/Vector.h"

Syntax

FVector2D UnitCartesianToSpherical() const

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