Options
All
  • Public
  • Public/Protected
  • All
Menu

A point in 3D space (including orientation) in a fixed location relative to a tracked image.

Hierarchy

  • Anchor
    • ImageAnchor

Index

Properties

id

id: string

A string that's unique for this anchor.

onNotVisible

onNotVisible: Event

Emitted when the anchor goes from being visible in the previous camera frame, to not being visible in the current frame.

onVisible

onVisible: Event

Emitted when the anchor becomes visible in a camera frame.

visible

visible: boolean

true if the anchor is visible in the current frame.

Methods

pose

  • pose(cameraPose: Float32Array, mirror?: boolean): Float32Array
  • Returns the world pose for the anchor for a given camera location.

    Parameters

    • cameraPose: Float32Array

      The location of the camera as a 4x4 column-major matrix.

    • Optional mirror: boolean

      Pass true to mirror the location in the X-axis.

    Returns Float32Array

    A 4x4 column-major transformation matrix.

poseCameraRelative

  • poseCameraRelative(mirror?: boolean): Float32Array
  • Returns the pose of the anchor relative to the camera.

    Parameters

    • Optional mirror: boolean

      Pass true to mirror the location in the X-axis.

    Returns Float32Array

    A 4x4 column-major transformation matrix.

Legend

  • Constructor
  • Property
  • Method

Generated using TypeDoc