This function computes curve's length.
int ocmath_curve_length( UINT nSize, const double * pX, const double * pY, double * pLen )
Return OE_NOERROR if succeed, otherwise, non-zero error code is returned.
EX1
void ocmath_curve_length_ex1() { vector vX = {0.1, 0.4, 0.7}; vector vY = {0.2, 0.6, 1.0}; double dLen; int nRet = ocmath_curve_length(vX.GetSize(), vX, vY, &dLen); } // At the end of example: dLen = 1;
origin.h