template interface IDataBuffer (Niantic.ARDK.AR.Awareness.IDataBuffer)
Overview
template <T> interface IDataBuffer: Niantic.ARDK.AR.Awareness.IAwarenessBuffer, IDisposable { // properties NativeArray<T> Data; // methods T Sample(Vector2 uv); T Sample(Vector2 uv, Matrix4x4 transform); }; // direct descendants interface IDataBufferFloat32; interface ISemanticBuffer;
Inherited Members
public: // properties UInt32 Height; CameraIntrinsics Intrinsics; bool IsKeyframe; Matrix4x4 ViewMatrix; UInt32 Width; // methods IAwarenessBuffer GetCopy();
Detailed Documentation
Properties
NativeArray<T> Data
Raw data of this buffer.
Methods
T Sample(Vector2 uv)
Returns the nearest value to the specified normalized coordinates in the buffer.
Parameters:
uv |
Normalized coordinates. |
Returns:
The value in the semantic buffer at the nearest location to the coordinates.
T Sample(Vector2 uv, Matrix4x4 transform)
Returns the nearest value to the specified normalized coordinates in the buffer.
Parameters:
uv |
Normalized coordinates. |
transform |
2D transformation applied to normalized coordinates before sampling. This transformation should convert to the depth buffer’s coordinate frame. |
Returns:
The value in the semantic buffer at the nearest location to the transformed coordinates.