PostGIS  2.1.10dev-r@@SVN_REVISION@@
void vector_sum ( const POINT3D a,
const POINT3D b,
POINT3D n 
)

Calculate the sum of two vectors.

Definition at line 416 of file lwgeodetic.c.

References POINT3D::x, POINT3D::y, and POINT3D::z.

Referenced by circ_node_leaf_new(), edge_point_in_cone(), point_in_cone(), and unit_normal().

417 {
418  n->x = a->x + b->x;
419  n->y = a->y + b->y;
420  n->z = a->z + b->z;
421  return;
422 }
double y
Definition: liblwgeom.h:296
double x
Definition: liblwgeom.h:296
double z
Definition: liblwgeom.h:296

Here is the caller graph for this function: