Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ComputeBoundsScreenRadiusSquared
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/SceneManagement.h |
| Include | #include "SceneManagement.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SceneManagement.cpp |
float ComputeBoundsScreenRadiusSquared
(
const FVector4 & Origin,
const float SphereRadius,
const FSceneView & View
)
Remarks
Computes the screen radius squared of a given sphere bounds in the given view. This is used at runtime instead of ComputeBoundsScreenSize to avoid a square root. It is a wrapper for the version below that does not take a FSceneView reference but parameters directly float - The screen size calculated
Parameters
| Name | Description |
|---|---|
| Origin | Origin of the bounds in world space |
| SphereRadius | Radius of the sphere to use to calculate screen coverage |
| View | The view to calculate the display factor for |