26 #ifndef _LWGEODETIC_TREE_H 27 #define _LWGEODETIC_TREE_H 1 31 #define CIRC_NODE_SIZE 8 Note that p1 and p2 are pointers into an independent POINTARRAY, do not free them.
int circ_tree_get_point(const CIRC_NODE *node, POINT2D *pt)
Returns a POINT2D that is a vertex of the input shape.
double circ_tree_distance_tree(const CIRC_NODE *n1, const CIRC_NODE *n2, const SPHEROID *spheroid, double threshold)
CIRC_NODE * lwgeom_calculate_circ_tree(const LWGEOM *lwgeom)
Point in spherical coordinates on the world.
int circ_tree_contains_point(const CIRC_NODE *node, const POINT2D *pt, const POINT2D *pt_outside, int level, int *on_boundary)
Walk the tree and count intersections between the stab line and the edges.
CIRC_NODE * circ_tree_new(const POINTARRAY *pa)
Build a tree of nodes from a point array, one node per edge.
void circ_tree_print(const CIRC_NODE *node, int depth)
int circ_tree_get_point_outside(const CIRC_NODE *node, POINT2D *pt)
struct circ_node CIRC_NODE
Note that p1 and p2 are pointers into an independent POINTARRAY, do not free them.
void circ_tree_free(CIRC_NODE *node)
Recurse from top of node tree and free all children.
struct circ_node ** nodes