Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FVector VRandCone
(
FVector const& Dir, |
Returns a random unit vector, uniformly distributed, within the specified cone ConeHalfAngleRad is the half-angle of cone, in radians. | Math/UnrealMathUtility.h | |
static FVector VRandCone
(
FVector const& Dir, |
This is a version of VRandCone that handles "squished" cones, i.e. with different angle limits in the Y and Z axes. | Math/UnrealMathUtility.h |
VRandCone(FVector const &, float)
Description
Returns a random unit vector, uniformly distributed, within the specified cone ConeHalfAngleRad is the half-angle of cone, in radians. Returns a normalized vector.
| Name | VRandCone |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static FVector VRandCone
(
FVector const & Dir,
float ConeHalfAngleRad
)
VRandCone(FVector const &, float, float)
Description
This is a version of VRandCone that handles "squished" cones, i.e. with different angle limits in the Y and Z axes. Assumes world Y and Z, although this could be extended to handle arbitrary rotations.
| Name | VRandCone |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static FVector VRandCone
(
FVector const & Dir,
float HorizontalConeHalfAngleRad,
float VerticalConeHalfAngleRad
)