PostGIS  2.1.10dev-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 405 of file lwgeodetic.c.

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

Referenced by unit_normal(), and vector_angle().

406 {
407  n->x = a->y * b->z - a->z * b->y;
408  n->y = a->z * b->x - a->x * b->z;
409  n->z = a->x * b->y - a->y * b->x;
410  return;
411 }
double y
Definition: liblwgeom.h:296
double x
Definition: liblwgeom.h:296
double z
Definition: liblwgeom.h:296

Here is the caller graph for this function: