Table of Contents

Class XRDepthInformation

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The XRDepthInformation interface contains information about the distance from the user's device to the real-world geometry in the user's environment.
[Value("XRDepthInformation")]
public class XRDepthInformation
Inheritance
XRDepthInformation
Derived
Inherited Members

Remarks

This interface is the parent of:

You will usually interact with these child interfaces. However, XRDepthInformation provides some useful properties that are inherited:

-XRCPUDepthInformation
-XRWebGLDepthInformation
-GetDepthInformation(XRView)

See also on MDN

Constructors

XRDepthInformation()

public XRDepthInformation()

Properties

Height

NOTE
Experimental
The read-only height property of the XRDepthInformation interface contains the height of the depth buffer (number of rows).
[Value("height")]
public ulong Height { get; }

Property Value

ulong

An unsigned long integer.

Remarks

NormDepthBufferFromNormView

NOTE
Experimental
The read-only normDepthBufferFromNormView property of the XRDepthInformation interface contains the 3D geometric transform that needs to be applied when indexing into the depth buffer.
[Value("normDepthBufferFromNormView")]
public XRRigidTransform NormDepthBufferFromNormView { get; }

Property Value

XRRigidTransform

An XRRigidTransform that needs to be applied when indexing into the depth buffer. The transformation that the matrix represents changes the coordinate system from normalized view coordinates to normalized depth-buffer coordinates that can then be scaled by depth buffer's width and height to obtain the absolute depth buffer coordinates.

Remarks

RawValueToMeters

NOTE
Experimental
The read-only rawValueToMeters property of the XRDepthInformation interface contains the scale factor by which the raw depth values must be multiplied in order to get the depths in meters.
[Value("rawValueToMeters")]
public Number RawValueToMeters { get; }

Property Value

Number

A number.

Remarks

For CPU depth information, see also the GetDepthInMeters(Number, Number) method.

See also on MDN

Width

NOTE
Experimental
The read-only width property of the XRDepthInformation interface contains the width of the depth buffer (number of columns).
[Value("width")]
public ulong Width { get; }

Property Value

ulong

An unsigned long integer.

Remarks