DK11 for Delphi | GisCsSystems.TGIS_CSCoordinateSystem.DistanceFromCS | Constructors | Fields | Methods | Properties
Calculates ellipsoidal distance (expressed in meters) based on current coordinate system.
// Delphi public function DistanceFromCS( const _from_cs : TGIS_CSCoordinateSystem; const _from : TGIS_Point; const _to_cs : TGIS_CSCoordinateSystem; const _to : TGIS_Point ) : Double;
// C++ Builder public: double DistanceFromCS( TGIS_CSCoordinateSystem* const _from_cs, TGIS_Point* const _from, TGIS_CSCoordinateSystem* const _to_cs, TGIS_Point* const _to );
Name | Type | Description |
---|---|---|
_from_cs | TGIS_CSCoordinateSystem | coordinate system of the first coordinate |
_from | TGIS_Point | first coordinate |
_to_cs | TGIS_CSCoordinateSystem | coordinate system of the first coordinate |
_to | TGIS_Point | first coordinate |
Type | Description |
---|---|
Double | distance value or -1 if distance can not be computed |