Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FRandomStream
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVector VRandCone
(
FVector const& Dir, |
Returns a random unit vector, uniformly distributed, within the specified cone. | Math/RandomStream.h | |
FVector VRandCone
(
FVector const& Dir, |
Returns a random unit vector, uniformly distributed, within the specified cone. | Math/RandomStream.h |
VRandCone(FVector const &, float)
Description
Returns a random unit vector, uniformly distributed, within the specified cone.
| Name | VRandCone |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/RandomStream.h |
| Include Path | #include "Math/RandomStream.h" |
FVector VRandCone
(
FVector const & Dir,
float ConeHalfAngleRad
) const
Normalized vector within the specified cone.
Parameters
| Name | Remarks |
|---|---|
| Dir | The center direction of the cone |
| ConeHalfAngleRad | Half-angle of cone, in radians. |
VRandCone(FVector const &, float, float)
Description
Returns a random unit vector, uniformly distributed, within the specified cone.
| Name | VRandCone |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/RandomStream.h |
| Include Path | #include "Math/RandomStream.h" |
FVector VRandCone
(
FVector const & Dir,
float HorizontalConeHalfAngleRad,
float VerticalConeHalfAngleRad
) const
Normalized vector within the specified cone.
Parameters
| Name | Remarks |
|---|---|
| Dir | The center direction of the cone |
| HorizontalConeHalfAngleRad | Horizontal half-angle of cone, in radians. |
| VerticalConeHalfAngleRad | Vertical half-angle of cone, in radians. |