@magiclane/maps-sdk
    Preparing search index...

    Class PositionOrientation

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

    Index

    Constructors

    Properties

    orientation: Point4d

    The object orientation

    position: Point3d

    The object position

    Methods

    • Checks if this object is equal to another PositionOrientation.

      Parameters

      Returns boolean

      True if equal, false otherwise

    • Returns a hash code for this object.

      Returns number

      The hash code

    • Converts this object to JSON.

      Returns {
          orientation: { w: number; x: number; y: number; z: number };
          position: { x: number; y: number; z: number };
      }

      The JSON representation

    • Returns a string representation of this object.

      Returns string

      The string representation

    • Creates a PositionOrientation instance from JSON.

      Parameters

      • json: { orientation: any; position: any }

        The JSON object

      Returns PositionOrientation

      A new PositionOrientation instance