Definition at line 1173 of file measures3d.c.
References FP_IS_ZERO, get_3dcross_product(), get_3dvector_from_points(), getPoint3dz_p(), POINTARRAY::npoints, PLANE3D::pop, PLANE3D::pv, VECTOR3D::x, POINT3DZ::x, VECTOR3D::y, POINT3DZ::y, VECTOR3D::z, and POINT3DZ::z.
Referenced by lw_dist3d_line_poly(), lw_dist3d_point_poly(), and lw_dist3d_poly_poly().
1183 for (i = 0; i < unique_points; i++)
1192 pl->
pop.
x /= unique_points;
1193 pl->
pop.
y /= unique_points;
1194 pl->
pop.
z /= unique_points;
1199 for (i = 0; i < POL_BREAKS; i++)
1204 n1 = i * unique_points / POL_BREAKS;
1205 n2 = n1 + unique_points / POL_BREAKS;
1222 double vl = vp.
x * vp.
x + vp.
y * vp.
y + vp.
z * vp.
z;
1223 pl->
pv.
x += vp.
x / vl;
1224 pl->
pv.
y += vp.
y / vl;
1225 pl->
pv.
z += vp.
z / vl;
int getPoint3dz_p(const POINTARRAY *pa, int n, POINT3DZ *point)
static int get_3dvector_from_points(POINT3DZ *p1, POINT3DZ *p2, VECTOR3D *v)
static int get_3dcross_product(VECTOR3D *v1, VECTOR3D *v2, VECTOR3D *v)