-
Notifications
You must be signed in to change notification settings - Fork 0
Position
Will Breitkreutz edited this page Feb 1, 2024
·
4 revisions
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.
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. |
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.