class AwarenessUtils (Niantic.ARDK.AR.Awareness.AwarenessUtils)

Overview

A collection of utility methods for working with contextual awareness buffers. More…

class AwarenessUtils {
public:
    // methods

    static Vector2Int FromBufferToScreenPosition< TBuffer >(
        AwarenessBufferProcessor<TBuffer> processor,
        int x,
        int y
    );
};

Detailed Documentation

A collection of utility methods for working with contextual awareness buffers.

Methods

static Vector2Int FromBufferToScreenPosition< TBuffer >(
    AwarenessBufferProcessor<TBuffer> processor,
    int x,
    int y
)

Converts pixel coordinates from the raw awareness buffer’s coordinate frame to viewport pixel coordinates.

Parameters:

processor

Reference to the context awareness processor.

x

Awareness buffer pixel position on the x axis.

y

Awareness buffer pixel position on the y axis.

Returns:

Pixel coordinates on the viewport.