PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ dot_product_side()

static int dot_product_side ( const POINT3D p,
const POINT3D q 
)
static

Utility function for edge_intersects(), signum with a tolerance in determining if the value is zero.

Definition at line 3409 of file lwgeodetic.c.

References dot_product(), and FP_IS_ZERO.

Referenced by edge_intersects().

3410 {
3411  double dp = dot_product(p, q);
3412 
3413  if ( FP_IS_ZERO(dp) )
3414  return 0;
3415 
3416  return dp < 0.0 ? -1 : 1;
3417 }
#define FP_IS_ZERO(A)
static double dot_product(const POINT3D *p1, const POINT3D *p2)
Convert cartesian coordinates on unit sphere to lon/lat coordinates static void cart2ll(const POINT3D...
Definition: lwgeodetic.c:415
Here is the call graph for this function:
Here is the caller graph for this function: