PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ test_lwpoint_set_ordinate()

static void test_lwpoint_set_ordinate ( void  )
static

Definition at line 399 of file cu_algorithm.c.

References lwpoint_set_ordinate(), POINT4D::m, POINT4D::x, POINT4D::y, and POINT4D::z.

Referenced by algorithms_suite_setup().

400 {
401  POINT4D p;
402 
403  p.x = 0.0;
404  p.y = 0.0;
405  p.z = 0.0;
406  p.m = 0.0;
407 
408  lwpoint_set_ordinate(&p, 'X', 1.5);
409  CU_ASSERT_EQUAL( p.x, 1.5 );
410 
411  lwpoint_set_ordinate(&p, 'M', 2.5);
412  CU_ASSERT_EQUAL( p.m, 2.5 );
413 
414  lwpoint_set_ordinate(&p, 'Z', 3.5);
415  CU_ASSERT_EQUAL( p.z, 3.5 );
416 
417 }
double x
Definition: liblwgeom.h:354
double m
Definition: liblwgeom.h:354
void lwpoint_set_ordinate(POINT4D *p, char ordinate, double value)
Given a point, ordinate number and value, set that ordinate on the point.
double z
Definition: liblwgeom.h:354
double y
Definition: liblwgeom.h:354
Here is the call graph for this function:
Here is the caller graph for this function: