PostGIS  2.4.9dev-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 461 of file lwgeodetic.c.

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().

462 {
463  n->x = a->x + b->x;
464  n->y = a->y + b->y;
465  n->z = a->z + b->z;
466  return;
467 }
double y
Definition: liblwgeom.h:340
double x
Definition: liblwgeom.h:340
double z
Definition: liblwgeom.h:340
Here is the caller graph for this function: