Class: VRMarker

VRMarker

new VRMarker()

A class that represents a marker. If the underlying technology supports markers, the corresponding VRDisplay allows to detect them returning instances of this type when markers are identified. The supported types of markers are specified with constants defined in the VRDisplay class as MARKER_TYPE_XXX.
Source:

Members

(readonly) content :string

A string that represents the content of the detected marker. A content is provided inside QRCode type markers and it can represents from plain text to a URL.
Type:
  • string
Source:

(readonly) id :long

A number that identifies the marker. For non QRCode markers, the id is enbedded in the physicar marker itself and this attribute provides its value. If the marker is a QRCode, there is no id and a content is provided.
Type:
  • long
Source:

(readonly) orientation :Float32Array

An array representing the quaternion that provides the orientation of the marker in the 3D space.
Type:
  • Float32Array
Source:

(readonly) position :Float32Array

An array representing the 3D position of the detected marker.
Type:
  • Float32Array
Source:

(readonly) type :long

A number that identifies the type of a marker. The VRDisplay structure has the constants that define the supported marker types.
Type:
  • long
Source: