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

◆ get_3dvector_from_points()

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

Definition at line 34 of file measures3d.c.

35{
36 v->x = p2->x - p1->x;
37 v->y = p2->y - p1->y;
38 v->z = p2->z - p1->z;
39
40 return (!FP_IS_ZERO(v->x) || !FP_IS_ZERO(v->y) || !FP_IS_ZERO(v->z));
41}
#define FP_IS_ZERO(A)
double z
Definition liblwgeom.h:396
double x
Definition liblwgeom.h:396
double y
Definition liblwgeom.h:396
double z
Definition measures3d.h:52
double x
Definition measures3d.h:52
double y
Definition measures3d.h:52

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_ptarray_tri(), lw_dist3d_seg_seg(), and project_point_on_plane().

Here is the caller graph for this function: