Angle between two unit vectors.
Definition at line 505 of file lwgeodetic.c.
506{
509
513
516
517 angle = atan2(y, x);
518 return angle;
519}
void normalize(POINT3D *p)
Normalize to a unit vector.
static void cross_product(const POINT3D *a, const POINT3D *b, POINT3D *n)
Calculate the cross product of two vectors.
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...
References cross_product(), dot_product(), and normalize().
Referenced by gbox_geocentric_get_gbox_cartesian(), and test_vector_angle().