20 static inline double dist2(
double* a,
double* b )
22 double abx = b[0] - a[0], aby = b[1] - a[1];
23 return sqrt( abx * abx + aby * aby );
26 static inline double area2D(
double* a,
double* b,
double* c )
29 return ( ( b[0] - a[0] ) * ( c[1] - a[1] ) - ( b[1] - a[1] ) * ( c[0] - a[0] ) ) / 2;
32 static int borderPointsOfXinY2(
double* X,
int nX,
double* Y,
int nY,
double* P,
int* side,
double epsilon_area );
203 std::vector< Tag >& tagList );
232 double spherical_angle(
const double* A,
const double* B,
const double* C,
double Radius );
257 #ifdef MOAB_HAVE_TEMPESTREMAP
259 double area_spherical_triangle_GQ(
const double* ptA,
const double* ptB,
const double* ptC );
263 double area_spherical_polygon_GQ(
const double* A,
int N );