PostGIS  3.4.0dev-r@@SVN_REVISION@@
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages

◆ vector_difference()

static void vector_difference ( const POINT3D a,
const POINT3D b,
POINT3D n 
)
static

Calculate the difference of two vectors.

Definition at line 476 of file lwgeodetic.c.

477 {
478  n->x = a->x - b->x;
479  n->y = a->y - b->y;
480  n->z = a->z - b->z;
481  return;
482 }
double z
Definition: liblwgeom.h:402
double x
Definition: liblwgeom.h:402
double y
Definition: liblwgeom.h:402

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

Referenced by edge_distance_to_point(), point_in_cone(), and unit_normal().

Here is the caller graph for this function: