PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ get_3dvector_from_points()

static int get_3dvector_from_points ( POINT3DZ p1,
POINT3DZ p2,
VECTOR3D v 
)
inlinestatic

Definition at line 45 of file measures3d.c.

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

Referenced by define_plane(), lw_dist3d_ptarray_poly(), lw_dist3d_seg_seg(), and project_point_on_plane().

46 {
47  v->x=p2->x-p1->x;
48  v->y=p2->y-p1->y;
49  v->z=p2->z-p1->z;
50 
51  return (!FP_IS_ZERO(v->x) || !FP_IS_ZERO(v->y) || !FP_IS_ZERO(v->z));
52 }
double z
Definition: liblwgeom.h:334
double y
Definition: liblwgeom.h:334
double x
Definition: liblwgeom.h:334
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: