Computes the pole of the great circle disk which is the intersection of the great circle with the line of maximum/minimum gradient that lies on the great circle plane.
Definition at line 1101 of file lwgeodetic.c.
1105 LWDEBUG(4,
"entering function");
1110 LWDEBUGF(4,
"unit normal t1 == POINT(%.8g %.8g %.8g)", t1.
x, t1.
y, t1.
z);
1111 LWDEBUGF(4,
"unit normal t2 == POINT(%.8g %.8g %.8g)", t2.
x, t2.
y, t2.
z);
1118 LWDEBUGF(4,
"clairaut top == GPOINT(%.6g %.6g)", g_top->
lat, g_top->
lon);
1119 LWDEBUGF(4,
"clairaut bottom == GPOINT(%.6g %.6g)", g_bottom->
lat, g_bottom->
lon);
#define LW_TRUE
Return types for functions with status returns.
void normalize(POINT3D *p)
Normalize to a unit vector.
void cart2geog(const POINT3D *p, GEOGRAPHIC_POINT *g)
Convert cartesian coordinates on unit sphere to spherical coordinates.
double z_to_latitude(double z, int top)
Used in great circle to compute the pole of the great circle.
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.
#define LWDEBUG(level, msg)
#define LWDEBUGF(level, msg,...)
Point in spherical coordinates on the world.
References cart2geog(), GEOGRAPHIC_POINT::lat, GEOGRAPHIC_POINT::lon, LW_FALSE, LW_SUCCESS, LW_TRUE, LWDEBUG, LWDEBUGF, normalize(), robust_cross_product(), POINT3D::x, POINT3D::y, POINT3D::z, and z_to_latitude().
Referenced by test_clairaut().