Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/FMath
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
Include | #include "Math/UnrealMathUtility.h" |
Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static FVector2D GetAzimuthAndElevation
&40;
const FVector & Direction,
const FVector & AxisX,
const FVector & AxisY,
const FVector & AxisZ
&41;
Remarks
Returns Azimuth and Elevation of vector 'Direction' in coordinate system O(AxisX,AxisY,AxisZ).
Orientation: (consider 'O' the first person view of the player, and 'Direction' a vector pointing to an enemy)
- positive azimuth means enemy is on the right of crosshair. (negative means left).
- positive elevation means enemy is on top of crosshair, negative means below. FVector2D X = Azimuth angle (in radians) (-PI, +PI) Y = Elevation angle (in radians) (-PI/2, +PI/2)
Parameters
Name | Description |
---|---|
Direction | Direction of target. |
AxisX | X component of reference system. |
AxisY | Y component of reference system. |
AxisZ | Z component of reference system. |