Documentation
Reference
2.1.38 (current version)
collection
interactivityModel
Interfaces

coordSystem.cartesian

Static object.

Instance of ICoordSystem

Class that describes the geometry of a Cartesian plane. Used as the default coordinate system when constructing geodetic lines in non-standard projections.

Methods

coordSystem.cartesian([scale])

Parameters:

ParameterDefault valueDescription
scale 1

Type: Number | Number[]

The increment of a division on an axis. Can be a number or pair of numbers for each of the axes.

Methods

NameReturnsDescription
getDistance(point1, point2)Number

Returns the shortest distance (along a geodetic line) between the two set points (in meters).

solveDirectProblem(startPoint, direction, distance)Object

Solves the first (direct) geodetic problem: where we will end up, if we start from a specified point and go in the specified direction for the specified distance, without turning.

solveInverseProblem(startPoint, endPoint[, reverseDirection])Object

Solves the second (inverse) geodetic problem: construct the shortest route between two points on the mapped surface and determine the distance and direction of movement.