Class: Cartesian

cartesian~Cartesian(x, y, z)

new Cartesian(x, y, z)

Creates cartesian coordinate representing ECEF (earth-centric earth-fixed) point.
Parameters:
Name Type Description
x number x coordinate in metres.
y number y coordinate in metres.
z number z coordinate in metres.
Source:
Example
var p1 = new Cartesian(3980581.210, -111.159, 4966824.522);

Methods

applyTransform(t)

Applies Helmert (seven-parameter) transformation to ‘this’ coordinate using transform parameters t.
Parameters:
Name Type Description
t LatLon.datum.transform Transformation to apply to this coordinate.
Source:

toLatLon(datumopt)

Converts ‘this’ (geocentric) cartesian (x/y/z) coordinate to (ellipsoidal geodetic) latitude/longitude point on specified datum. Uses Bowring’s (1985) formulation for μm precision.
Parameters:
Name Type Attributes Default Description
datum LatLon.datum.transform <optional>
WGS84 Datum to use when converting point.
Source:

toString(dpopt) → {string}

Returns a string representation of ‘this’ cartesian point.
Parameters:
Name Type Attributes Default Description
dp number <optional>
0|2|4 Number of decimal places to use - default 0 for dms, 2 for dm, 4 for d.
Source:
Returns:
Comma-separated latitude/longitude.
Type
string