Definition at line 1167 of file measures3d.c.
1177 for (i = 0; i < unique_points; i++)
1186 pl->
pop.
x /= unique_points;
1187 pl->
pop.
y /= unique_points;
1188 pl->
pop.
z /= unique_points;
1193 for (i = 0; i < POL_BREAKS; i++)
1198 n1 = i * unique_points / POL_BREAKS;
1199 n2 = n1 + unique_points / POL_BREAKS;
1216 double vl = vp.
x * vp.
x + vp.
y * vp.
y + vp.
z * vp.
z;
1217 pl->
pv.
x += vp.
x / vl;
1218 pl->
pv.
y += vp.
y / vl;
1219 pl->
pv.
z += vp.
z / vl;
int getPoint3dz_p(const POINTARRAY *pa, uint32_t 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)
References FP_IS_ZERO, get_3dcross_product(), get_3dvector_from_points(), getPoint3dz_p(), POINTARRAY::npoints, PLANE3D::pop, PLANE3D::pv, POINT3DZ::x, VECTOR3D::x, POINT3DZ::y, VECTOR3D::y, POINT3DZ::z, and VECTOR3D::z.
Referenced by lw_dist3d_line_poly(), lw_dist3d_point_poly(), and lw_dist3d_poly_poly().