PostGIS  2.2.7dev-r@@SVN_REVISION@@
static void vector_difference ( const POINT3D a,
const POINT3D b,
POINT3D n 
)
static

Calculate the difference of two vectors.

Definition at line 426 of file lwgeodetic.c.

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

Referenced by edge_distance_to_point(), and unit_normal().

427 {
428  n->x = a->x - b->x;
429  n->y = a->y - b->y;
430  n->z = a->z - b->z;
431  return;
432 }
double y
Definition: liblwgeom.h:324
double x
Definition: liblwgeom.h:324
double z
Definition: liblwgeom.h:324

Here is the caller graph for this function: