PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ get_3dcross_product()

static int get_3dcross_product ( VECTOR3D v1,
VECTOR3D v2,
VECTOR3D v 
)
inlinestatic

Definition at line 55 of file measures3d.c.

References FP_IS_ZERO, VECTOR3D::x, VECTOR3D::y, and VECTOR3D::z.

Referenced by define_plane().

56 {
57  v->x=(v1->y*v2->z)-(v1->z*v2->y);
58  v->y=(v1->z*v2->x)-(v1->x*v2->z);
59  v->z=(v1->x*v2->y)-(v1->y*v2->x);
60 
61  return (!FP_IS_ZERO(v->x) || !FP_IS_ZERO(v->y) || !FP_IS_ZERO(v->z));
62 }
double z
Definition: measures3d.h:51
#define FP_IS_ZERO(A)
double y
Definition: measures3d.h:51
double x
Definition: measures3d.h:51
Here is the caller graph for this function: