Returns -1 if the point is to the left of the plane formed by the edge, 1 if the point is to the right, and 0 if the point is on the plane.
Definition at line 690 of file lwgeodetic.c.
References dot_product(), GEOGRAPHIC_EDGE::end, FP_IS_ZERO, geog2cart(), LWDEBUG, LWDEBUGF, normalize(), robust_cross_product(), GEOGRAPHIC_EDGE::start, and w.
Referenced by edge_point_on_plane(), and sphere_signed_area().
703 LWDEBUG(4,
"point is on plane (dot product is zero)");
void robust_cross_product(const GEOGRAPHIC_POINT *p, const GEOGRAPHIC_POINT *q, POINT3D *a)
Computes the cross product of two vectors using their lat, lng representations.
void normalize(POINT3D *p)
Normalize to a unit vector.
#define LWDEBUG(level, msg)
static double dot_product(const POINT3D *p1, const POINT3D *p2)
Convert cartesion coordinates on unit sphere to lon/lat coordinates static void cart2ll(const POINT3D...
void geog2cart(const GEOGRAPHIC_POINT *g, POINT3D *p)
Convert spherical coordinates to cartesion coordinates on unit sphere.
#define LWDEBUGF(level, msg,...)