PostGIS  2.5.7dev-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.

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 }
#define FP_IS_ZERO(A)
double z
Definition: liblwgeom.h:337
double x
Definition: liblwgeom.h:337
double y
Definition: liblwgeom.h:337
double z
Definition: measures3d.h:51
double x
Definition: measures3d.h:51
double y
Definition: measures3d.h:51

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

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

Here is the caller graph for this function: