Class: Cartesian_Nvector

latlon-nvector-ellipsoidal~Cartesian_Nvector()

Cartesian_Nvector extends Cartesian with method to convert cartesian coordinates to n-vectors.

Constructor

new Cartesian_Nvector()

Source:

Extends

  • Cartesian

Methods

toNvector(datumopt) → {Nvector}

Converts ‘this’ cartesian coordinate to an n-vector. qv Gade 2010 ‘A Non-singular Horizontal Position Representation’ eqn 23
Parameters:
Name Type Attributes Default Description
datum LatLon.datums <optional>
WGS84 Datum to use for conversion.
Source:
Returns:
N-vector equivalent to this cartesian coordinate.
Type
Nvector
Example
const c = new Cartesian(3980581, 97, 4966825);
  const n = c.toNvector(); // { x: 0.6228, y: 0.0000, z: 0.7824, h: 0.0000 }