WebIDLpedia

XRRay interface

Definition

WebXR Hit Test Module defines XRRay



[SecureContext, Exposed=Window]
interface XRRay {
  constructor(optional DOMPointInit origin = {}, optional XRRayDirectionInit direction = {});
  constructor(XRRigidTransform transform);
  [SameObject] readonly attribute DOMPointReadOnly origin;
  [SameObject] readonly attribute DOMPointReadOnly direction;
  [SameObject] readonly attribute Float32Array matrix;
};

Methods and attributes that return objects implementing XRRay

Referring IDL interfaces/dictionaries