PostGIS  2.5.7dev-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 465 of file lwgeodetic.c.

466 {
467  n->x = a->x + b->x;
468  n->y = a->y + b->y;
469  n->z = a->z + b->z;
470  return;
471 }
double z
Definition: liblwgeom.h:343
double x
Definition: liblwgeom.h:343
double y
Definition: liblwgeom.h:343

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

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

Here is the caller graph for this function: