github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/geo/geographiclib/geographiclib.h (about) 1 // Copyright 2020 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 #include "geodesic.h" 12 13 #if defined(__cplusplus) 14 extern "C" { 15 #endif 16 17 // CR_GEOGRAPHICLIB_InverseBatch computes the sum of the length of the lines 18 // represented by an array of lat/lngs using Inverse from GeographicLib. 19 // It is batched in C++ to reduce the cgo overheads. 20 void CR_GEOGRAPHICLIB_InverseBatch( 21 struct geod_geodesic* spheroid, 22 double lats[], 23 double lngs[], 24 int len, 25 double *result 26 ); 27 28 #if defined(__cplusplus) 29 } 30 #endif