UGoogleARCoreFrameFunctionLibrary::TransformARCoordinates2D

Transforms an array of 2D coordinates into a different 2D coordinate system.

Windows
MacOS
Linux

Deprecated

  • This function is deprecated, use the standard materials from ARUtilities plugin for passthrough rendering.

References

Module

GoogleARCoreBase

Header

/Engine/Plugins/Runtime/AR/Google/GoogleARCore/Source/GoogleARCoreBase/Public/GoogleARCoreFunctionLibrary.h

Include

#include "GoogleARCoreFunctionLibrary.h"

Source

/Engine/Plugins/Runtime/AR/Google/GoogleARCore/Source/GoogleARCoreBase/Private/GoogleARCoreFunctionLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintPure, Category="GoogleARCore|PassthroughCamera",
          Meta=(Keywords="googlear arcore passthrough camera uv", DeprecatedFunction, DeprecationMessage="This function is deprecated, use the standard materials from ARUtilities plugin for passthrough rendering."))
static void TransformARCoordinates2D
(
    EGoogleARCoreCoordinates2DType InputCoordinatesType,
    const TArray< FVector2D > & InputCoordinates,
    EGoogleARCoreCoordinates2DType OutputCoordinatesType,
    TArray< FVector2D > & OutputCoordinates
)

Remarks

Transforms an array of 2D coordinates into a different 2D coordinate system. This will account for the display rotation, and any additional required adjustment.

Some examples of useful conversions: To transform screen space UVs for texture space UVs to rendering pass-through camera texture: Viewport -> Texture; To transform a point found by a computer vision algorithm in the pass-through camera image into a point on the viewport: Image -> Viewport;

Parameters

Parameter

Description

InputCoordinatesType

The coordinate system used by InputCoordinates.

InputCoordinates

The input 2d coordinates.

OutputCoordinatesType

The coordinate system to transform to.

OutputCoordinates

The output 2d coordinates.

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