PostGIS  2.4.9dev-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 450 of file lwgeodetic.c.

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

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

451 {
452  n->x = a->y * b->z - a->z * b->y;
453  n->y = a->z * b->x - a->x * b->z;
454  n->z = a->x * b->y - a->y * b->x;
455  return;
456 }
double y
Definition: liblwgeom.h:340
double x
Definition: liblwgeom.h:340
double z
Definition: liblwgeom.h:340
Here is the caller graph for this function: