PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ vector_sum()

void vector_sum ( const POINT3D a,
const POINT3D b,
POINT3D n 
)

Calculate the sum of two vectors.

Definition at line 434 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().

435 {
436  n->x = a->x + b->x;
437  n->y = a->y + b->y;
438  n->z = a->z + b->z;
439  return;
440 }
double y
Definition: liblwgeom.h:342
double x
Definition: liblwgeom.h:342
double z
Definition: liblwgeom.h:342
Here is the caller graph for this function: