Cartographic

new SuperMap3D.Cartographic(longitude, latitude, height)

Spatial location defined by longitude, latitude, altitude.
Name Type Default Description
longitude Number 0.0 optional Longitude in radians.
latitude Number 0.0 optional Latitude in radians.
height Number 0.0 optional Height in meters.
See:

Members

staticconstantSuperMap3D.Cartographic.ZERO : Cartographic

The map instance is initialized to (0.0, 0.0, 0.0).

height : Number

Ellipsoid height in meters.
Default Value: 0.0

latitude : Number

Latitude in radians.
Default Value: 0.0

longitude : Number

Longitude in radians.
Default Value: 0.0

Methods

staticSuperMap3D.Cartographic.clone(cartographic, result)Cartographic

copy Cartographic's instance。
Name Type Description
cartographic Cartographic The object to be copied.
result Cartographic optional The object used to store the results.
Returns:
The modified result parameter, if not provided, returns a new Cartographic instance; if the provided cartographic coordinates are undefined, returns undefined.

staticSuperMap3D.Cartographic.equals(left, right)Boolean

Compares two maps and returns true if their values ​​are equal, false otherwise.
Name Type Description
left Cartographic optional the first map
right Cartographic optional the second map
Returns:
Returns true if the values ​​of the two maps are equal, otherwise returns false.

staticSuperMap3D.Cartographic.equalsEpsilon(left, right, epsilon)Boolean

Compares two maps and returns true if their values ​​are less than the specified value, false otherwise.
Name Type Description
left Cartographic optional the first map
right Cartographic optional the second map
epsilon Number The value epsilon to use for the equivalence test.
Returns:
Returns true if the values ​​of the two maps are less than the specified value, otherwise returns false.

staticSuperMap3D.Cartographic.fromCartesian(cartesian, ellipsoid, result)Cartographic

Creates a Cartographic instance based on a Cartesian coordinate (Cartesian3) position. The resulting data is in radians.
Name Type Default Description
cartesian Cartesian3 The Cartesian coordinate (Cartesian3) position to be converted into a cartographic representation.
ellipsoid Ellipsoid Ellipsoid.WGS84 optional Ellipsoid.
result Cartographic optional object to store the result
Returns:
The modified result parameter, or a new Cartographic instance if not provided.

staticSuperMap3D.Cartographic.fromDegrees(longitude, latitude, height, result)Cartographic

Creates a Cartographic instance based on longitude and latitude values ​​in degrees. The resulting data is in radians.
Name Type Default Description
longitude Number Longitude in degrees.
latitude Number Latitude in degrees.
height Number 0.0 optional Ellipsoid height in meters.
result Cartographic optional The object used to store the results.
Returns:
The modified result parameter, or a new Cartographic instance if not provided.

staticSuperMap3D.Cartographic.fromRadians(longitude, latitude, height, result)Cartographic

Creates a Cartographic instance based on latitude and longitude values ​​in radians.
Name Type Default Description
longitude Number Longitude in radians.
latitude Number Latitude in radians.
height Number 0.0 optional Ellipsoid height in meters.
result Cartographic optional The object used to store the results.
Returns:
The modified result parameter, or a new Cartographic instance if not provided.

staticSuperMap3D.Cartographic.sphericalDistance(longitudeA, latitudeA, longitudeB, latitudeB)Number

Computes the spherical distance between two points.
Name Type Description
longitudeA Number Specifies the longitude of the first point, in degrees.
latitudeA Number Specifies the latitude of the first point, in degrees.
longitudeB Number Specifies the longitude of the second point, in degrees.
latitudeB Number Specifies the latitude of the second point, in degrees.
Returns:
The distance value between two points.

toString()String

Creates a string representing a map in '(longitude, latitude, altitude)' format.
Returns:
A string representing the map in '(longitude, latitude, altitude)' format.