Home > @magiclane/maps-sdk > PositionOrientation

PositionOrientation class

The position and orientation of an object in 3D space.

Core

Signature:

export declare class PositionOrientation 

Constructors

Constructor

Modifiers

Description

(constructor)({ position, orientation }, input)

Constructor for the class

Properties

Property

Modifiers

Type

Description

orientation

Point4d

The object orientation

position

Point3d

The object position

Methods

Method

Modifiers

Description

equals(other)

Checks if this object is equal to another PositionOrientation.

fromJson(json)

static

Creates a PositionOrientation instance from JSON.

hashCode()

Returns a hash code for this object.

toJson()

Converts this object to JSON.

toString()

Returns a string representation of this object.