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

◆ distance3d_sqr_pt4d_pt4d()

static double distance3d_sqr_pt4d_pt4d ( const POINT4D p1,
const POINT4D p2 
)
inlinestatic

Definition at line 31 of file lwkmeans.c.

32{
33 double hside = p2->x - p1->x;
34 double vside = p2->y - p1->y;
35 double zside = p2->z - p1->z;
36
37 return hside * hside + vside * vside + zside * zside;
38}
double x
Definition liblwgeom.h:414
double z
Definition liblwgeom.h:414
double y
Definition liblwgeom.h:414

References POINT4D::x, POINT4D::y, and POINT4D::z.

Referenced by kmeans_init(), and update_r().

Here is the caller graph for this function: