8000 Position · USACE/groundwork-geo Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Position

Will Breitkreutz edited this page Feb 1, 2024 · 4 revisions

class Position

import { Position } from "@usace/groundwork-geo";

Position is a utility class for representing and validating a camera position in a format that Cesium and Groundwork know how to work with.

Base Options

Name Type Default Value Description
lon number undefined Longitude in decimal degrees (-180 - 180)
lat number undefined Latitude in decimal degrees (-90 - 90)
height number 10000 Height of the camera above the terrain or the WGS84 ellipsoid.
heading number 0 Direction the camera is facing, default is North is up.
pitch number -90 Vertical angle of the camera view, default is nadir.
roll number 0 Side to side roll of the camera view, default is horizontal.

Methods

isValid() -> {boolean}

Runs a quick validity check on the position, Could have been implemented as a static method, but wasn't... so you call it on the instance of a Position, not from the Position class itself.

Clone this wiki locally
0