Function gaiaGreatCircleTotalLength

Source
pub unsafe extern "C" fn gaiaGreatCircleTotalLength(
    a: f64,
    b: f64,
    dims: c_int,
    coords: *mut f64,
    vert: c_int,
) -> f64
Expand description

Calculates the Great Circle Total Length for a Linestring / Ring

\param a first geodesic parameter. \param b second geodesic parameter. \param dims dimensions: one of GAIA_XY, GAIA_XY_Z, GAIA_XY_M or GAIA_XY_ZM \param coords pointed to COORD mem-array \param vert number of Points (aka Vertices) within the COORD mem-array

\return the calculated Great Circle Total Length.

\sa gaiaEllipseParams, gaiaGreatCircleDistance, gaiaGeodesicDistance, gaiaGeodesicTotalLength

\note the returned length is expressed in Kilometers. \n the Great Circle method is less accurate but fastest to be calculated. \n \b dims, \b coords and \b vert are usually expected to correspond to \b DimensionModel, \b Coords and \b Points members from a gaiaLinestringStruct or gaiaRingStruct