Navigation
API > API/Runtime > API/Runtime/Engine
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float ComputeBoundsScreenSize
(
const FVector4& Origin, |
Computes the screen size of a given sphere bounds in the given view. | SceneManagement.h | |
float ComputeBoundsScreenSize
(
const FVector4& BoundsOrigin, |
Computes the screen size of a given sphere bounds in the given view. | SceneManagement.h |
ComputeBoundsScreenSize(const FVector4 &, const float, const FSceneView &)
Description
Computes the screen size of a given sphere bounds in the given view. The screen size is the projected diameter of the bounding sphere of the model. i.e. 0.5 means half the screen's maximum dimension.
| Name | ComputeBoundsScreenSize |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/SceneManagement.h |
| Include Path | #include "SceneManagement.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SceneManagement.cpp |
float ComputeBoundsScreenSize
(
const FVector4 & Origin,
const float SphereRadius,
const FSceneView & View
)
float - The screen size calculated
Parameters
| Name | Remarks |
|---|---|
| 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 |
ComputeBoundsScreenSize(const FVector4 &, const float, const FVector4 &, const FMatrix &)
Description
Computes the screen size of a given sphere bounds in the given view. The screen size is the projected diameter of the bounding sphere of the model. i.e. 0.5 means half the screen's maximum dimension.
| Name | ComputeBoundsScreenSize |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/SceneManagement.h |
| Include Path | #include "SceneManagement.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SceneManagement.cpp |
float ComputeBoundsScreenSize
(
const FVector4 & BoundsOrigin,
const float SphereRadius,
const FVector4 & ViewOrigin,
const FMatrix & ProjMatrix
)
float - The screen size calculated
Parameters
| Name | Remarks |
|---|---|
| BoundsOrigin | Origin of the bounds in world space |
| SphereRadius | Radius of the sphere to use to calculate screen coverage |
| ViewOrigin | The origin of the view to calculate the display factor for |
| ProjMatrix | The projection matrix used to scale screen size bounds |