XRDepthInformation class

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface contains information about the distance from the user’s device to the real-world geometry in the user’s environment. This interface is the parent of:

XRCPUDepthInformation

Depth information from the CPU (returned by XRFrame.getDepthInformation()).

XRWebGLDepthInformation

Depth information from WebGL (returned by XRWebGLBinding.getDepthInformation()).

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

Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

XRDepthInformation()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
height int

Available on XRDepthInformation, provided by the PropsXRDepthInformation extension

no setter
normDepthBufferFromNormView XRRigidTransform

Available on XRDepthInformation, provided by the PropsXRDepthInformation extension

no setter
rawValueToMeters double

Available on XRDepthInformation, provided by the PropsXRDepthInformation extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int

Available on XRDepthInformation, provided by the PropsXRDepthInformation extension

no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited