PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ get_3dcross_product()

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

Definition at line 44 of file measures3d.c.

45{
46 v->x = (v1->y * v2->z) - (v1->z * v2->y);
47 v->y = (v1->z * v2->x) - (v1->x * v2->z);
48 v->z = (v1->x * v2->y) - (v1->y * v2->x);
49
50 return (!FP_IS_ZERO(v->x) || !FP_IS_ZERO(v->y) || !FP_IS_ZERO(v->z));
51}
#define FP_IS_ZERO(A)
double z
Definition measures3d.h:52
double x
Definition measures3d.h:52
double y
Definition measures3d.h:52

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

Referenced by define_plane().

Here is the caller graph for this function: