GizmoRenderingUtil::CalculateLocalPixelToWorldScale

This is a local estimate and is increasingly incorrect as the 3D point gets further from Location

Choose your operating system:

Windows

macOS

Linux

Warnings

  • This is a local estimate and is increasingly incorrect as the 3D point gets further from Location

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoRenderingUtil.h

Include

#include "BaseGizmos/GizmoRenderingUtil.h"

Source

/Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/GizmoRenderingUtil.cpp

Syntax

namespace GizmoRenderingUtil
{
    float GizmoRenderingUtil::CalculateLocalPixelToWorldScale
    (
        const FSceneView * View,
        const FVector & Location
    )
}

Remarks

This is a local estimate and is increasingly incorrect as the 3D point gets further from Location

Returns

Conversion factor between pixel and world-space coordinates at 3D point Location in View.