PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ cross_product()

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

Calculate the cross product of two vectors.

Definition at line 454 of file lwgeodetic.c.

455 {
456  n->x = a->y * b->z - a->z * b->y;
457  n->y = a->z * b->x - a->x * b->z;
458  n->z = a->x * b->y - a->y * b->x;
459  return;
460 }
double z
Definition: liblwgeom.h:343
double x
Definition: liblwgeom.h:343
double y
Definition: liblwgeom.h:343

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

Referenced by lwpoly_pt_outside_hack(), unit_normal(), and vector_angle().

Here is the caller graph for this function: