ChartToolsCalculateMapDistance Method (PointF, PointF) |
LightningChart .NET Help
Calculate distance between two coordinates in world map, by using latitude and longitude.
Namespace:
Arction.WinForms.Charting
Assembly:
Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntaxpublic static double CalculateMapDistance(
PointF coord1,
PointF coord2
)
Public Shared Function CalculateMapDistance (
coord1 As PointF,
coord2 As PointF
) As Double
public:
static double CalculateMapDistance(
PointF coord1,
PointF coord2
)
Parameters
- coord1
- Type: System.DrawingPointF
First coordinate. - coord2
- Type: System.DrawingPointF
Second coordinate.
Return Value
Type:
DoubleDistance in kilometers.
See Also