Navigation
API > API/Plugins > API/Plugins/DisplayClusterScenePreview > API/Plugins/DisplayClusterScenePreview/FDisplayClusterLightCardEditorHe-
References
| Module | DisplayClusterScenePreview |
| Header | /Engine/Plugins/Runtime/nDisplay/Source/DisplayClusterScenePreview/Public/DisplayClusterLightCardEditorHelper.h |
| Include | #include "DisplayClusterLightCardEditorHelper.h" |
| Source | /Engine/Plugins/Runtime/nDisplay/Source/DisplayClusterScenePreview/Private/DisplayClusterLightCardEditorHelper.cpp |
bool CalculateOriginAndDirectionFromPixelPosition
&40;
const FIntPoint & InPixelPos,
const FSceneView & InSceneView,
const FVector & InOriginOffset,
FVector & OutOrigin,
FVector & OutDirection
&41;
Remarks
Calculates the desired direction from the view origin given a pixel position within the view. true if the direction was found
Parameters
| Name | Description |
|---|---|
| InPixelPos | The desired position within the view in pixels. |
| InSceneView | The view that was displayed when the pixel position was chosen. |
| InOriginOffset | An offset to apply to the origin before calling TraceScreenRay (if this is in orthographic mode). |
| OutOrigin | The origin point of the view. |
| OutDirection | The direction relative to the origin. |