Class XRDepthInformation
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalXRDepthInformation 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)
Constructors
XRDepthInformation()
public XRDepthInformation()
Properties
Height
NOTE
Experimentalheight 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
ExperimentalnormDepthBufferFromNormView 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
widthandheightto obtain the absolute depth buffer coordinates.
Remarks
RawValueToMeters
NOTE
ExperimentalrawValueToMeters 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.
Width
NOTE
Experimentalwidth 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.