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

Calculate the cross product of two vectors.

Definition at line 419 of file lwgeodetic.c.

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

Referenced by unit_normal(), and vector_angle().

420 {
421  n->x = a->y * b->z - a->z * b->y;
422  n->y = a->z * b->x - a->x * b->z;
423  n->z = a->x * b->y - a->y * b->x;
424  return;
425 }
double y
Definition: liblwgeom.h:339
double x
Definition: liblwgeom.h:339
double z
Definition: liblwgeom.h:339

Here is the caller graph for this function: