PostGIS  2.5.7dev-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 72 of file effectivearea.c.

73 {
74  return fabs(0.5*((P1[0]-P2[0])*(P3[1]-P2[1])-(P1[1]-P2[1])*(P3[0]-P2[0])));
75 }

Referenced by ptarray_calc_areas(), and tune_areas().

Here is the caller graph for this function: