Click or drag to resize

ChartToolsCalculateMapDistance Method (Double, Double, Double, Double)

LightningChart .NET Help
Calculate distance between two coordinates in world map, by using latitude and longitude.

Namespace:  Arction.Wpf.ChartingMVVM
Assembly:  Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntax
public static double CalculateMapDistance(
	double longitude1,
	double latitude1,
	double longitude2,
	double latitude2
)

Parameters

longitude1
Type: SystemDouble
First point longitude.
latitude1
Type: SystemDouble
First point latitude.
longitude2
Type: SystemDouble
Second point longitude.
latitude2
Type: SystemDouble
Second point latitude.

Return Value

Type: Double
Distance in kilometers.
See Also