PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ get_3dvector_from_points()

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

Definition at line 21 of file measures3d.c.

References LW_TRUE, 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().

22 {
23  v->x=p2->x-p1->x;
24  v->y=p2->y-p1->y;
25  v->z=p2->z-p1->z;
26 
27  return LW_TRUE;
28 }
double z
Definition: liblwgeom.h:318
double y
Definition: liblwgeom.h:318
double x
Definition: liblwgeom.h:318
double z
Definition: measures3d.h:37
double y
Definition: measures3d.h:37
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61
double x
Definition: measures3d.h:37
Here is the caller graph for this function: