Utility function for checking if P is within the cone defined by A1/A2.
3446 double min_similarity, similarity;
3460 if (fabs(1.0 - min_similarity) > 1e-10)
3469 if (similarity > min_similarity)
void normalize(POINT3D *p)
Normalize to a unit vector.
static int point3d_equals(const POINT3D *p1, const POINT3D *p2)
Utility function for ptarray_contains_point_sphere()
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...
#define LW_TRUE
Return types for functions with status returns.
static void vector_difference(const POINT3D *a, const POINT3D *b, POINT3D *n)
Calculate the difference of two vectors.
void vector_sum(const POINT3D *a, const POINT3D *b, POINT3D *n)
Calculate the sum of two vectors.