PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ triarea2d()

static double triarea2d ( const double *  P1,
const double *  P2,
const double *  P3 
)
static

Calculate the area of a triangle in 2d.

Definition at line 58 of file effectivearea.c.

Referenced by ptarray_calc_areas(), and tune_areas().

59 {
60  return fabs(0.5*((P1[0]-P2[0])*(P3[1]-P2[1])-(P1[1]-P2[1])*(P3[0]-P2[0])));
61 }
Here is the caller graph for this function: