Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Projection

Projection is used to convert positions from geo coordinates to world coordinates and vice versa.

Hierarchy

  • Projection

Index

Constructors

constructor

Properties

Readonly unitScale

unitScale: number

How to transform the projected coordinates to world units.

Accessors

type

Methods

Abstract getScaleFactor

Abstract groundDistance

localTangentSpace

Abstract projectBox

  • projectBox(geoBox: GeoBox): Box3Like
  • projectBox<WorldBoundingBox>(geoBox: GeoBox, result: WorldBoundingBox): WorldBoundingBox

Abstract projectPoint

Abstract scalePointToSurface

Abstract surfaceNormal

Abstract unprojectAltitude

Abstract unprojectBox

  • Converts a bounding box in world coordinates to a bounding box in geo coordinates.

    Example:

    const geoPos = projection.unprojectPoint(worldPos);
    console.log(geoPos.latitude, geoPos.longitude, geoPos.altitude);

    Parameters

    • worldBox: Box3Like

      The bounding box in world coordinates.

    Returns GeoBox

Abstract unprojectPoint

Abstract worldExtent

  • worldExtent<Bounds>(minElevation: number, maxElevation: number, result?: Bounds): Bounds
  • Returns the world extents in world coordinates.

    Type parameters

    Parameters

    • minElevation: number

      The minimum elevation in meters.

    • maxElevation: number

      The maximum elevation in meters.

    • Optional result: Bounds

      The optional object that will be used to create the resulting bounding box.

    Returns Bounds

Generated using TypeDoc