Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReferenceSpace

A reference space transforms absolute positions to another (global) reference space. The following data can be transformed:

  • Position coordinates
  • Linear velocity
  • Angular velocity
  • Orientation
  • Position accuracy

Hierarchy

Implements

Index

Constructors

constructor

Properties

createdTimestamp

createdTimestamp: number

displayName

displayName: string

Object display name

parentUID

parentUID: string

Parent object identifier

Accessors

parent

position

relativePositions

rotationQuaternion

scaleMatrix

transformationMatrix

  • get transformationMatrix(): Matrix4

uid

  • get uid(): string
  • set uid(value: string): void

Methods

addRelativePosition

bind

clone

getPosition

getRelativePosition

  • getRelativePosition(referenceObjectUID: string, type?: string): RelativePosition<any>

getRelativePositions

hasRelativePosition

  • hasRelativePosition(referenceObjectUID: string): boolean

orthographic

  • orthographic(left: number, right: number, bottom: number, top: number, near: number, far: number): ReferenceSpace

perspective

  • perspective(left: number, right: number, bottom: number, top: number, near: number, far: number): ReferenceSpace
  • Transform perspective

    Parameters

    • left: number

      Farthest left on the x-axis

    • right: number

      Farthest right on the x-axis

    • bottom: number

      Farthest down on the y-axis

    • top: number

      Farthest up on the y-axis

    • near: number

      Distance to the near clipping plane along the -Z axis

    • far: number

      Distance to the far clipping plane along the -Z axis

    Returns ReferenceSpace

    Reference space instance

referenceUnit

removeRelativePositions

  • removeRelativePositions(referenceObjectUID: string): void

reset

rotation

scale

setPosition

transform

translation

update