Angle between two unit vectors.
Definition at line 501 of file lwgeodetic.c.
References cross_product(), dot_product(), normalize(), pixval::x, and pixval::y.
Referenced by test_vector_angle().
void normalize(POINT3D *p)
Normalize to a unit vector.
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...
static void cross_product(const POINT3D *a, const POINT3D *b, POINT3D *n)
Calculate the cross product of two vectors.