PostGIS  2.1.10dev-r@@SVN_REVISION@@
int get_3dvector_from_points ( POINT3DZ p1,
POINT3DZ p2,
VECTOR3D v 
)

Definition at line 85 of file measures3d.h.

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().

86 {
87  v->x=p2->x-p1->x;
88  v->y=p2->y-p1->y;
89  v->z=p2->z-p1->z;
90 
91  return LW_TRUE;
92 }
double z
Definition: liblwgeom.h:290
double y
Definition: liblwgeom.h:290
double x
Definition: liblwgeom.h:290
double z
Definition: measures3d.h:36
double y
Definition: measures3d.h:36
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:51
double x
Definition: measures3d.h:36

Here is the caller graph for this function: