FMath::ComputeBoundingSphereForCone

Computes minimal bounding sphere encompassing given cone

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/UnrealMathUtility.h"

Source

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

Syntax

static FSphere ComputeBoundingSphereForCone
(
    FVector const & ConeOrigin,
    FVector const & ConeDirection,
    float ConeRadius,
    float CosConeAngle,
    float SinConeAngle
)

Remarks

Computes minimal bounding sphere encompassing given cone

Returns

Minimal bounding sphere encompassing given cone

Parameters

Parameter

Description

ConeOrigin

Cone origin

ConeDirection

Cone direction

ConeRadius

Cone Radius

CosConeAngle

Cos of the cone angle

SinConeAngle

Sin of the cone angle

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