PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ test_lwpoint_get_ordinate()

static void test_lwpoint_get_ordinate ( void  )
static

Definition at line 419 of file cu_algorithm.c.

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

Referenced by algorithms_suite_setup().

420 {
421  POINT4D p;
422 
423  p.x = 10.0;
424  p.y = 20.0;
425  p.z = 30.0;
426  p.m = 40.0;
427 
428  CU_ASSERT_EQUAL( lwpoint_get_ordinate(&p, 'X'), 10.0 );
429  CU_ASSERT_EQUAL( lwpoint_get_ordinate(&p, 'Y'), 20.0 );
430  CU_ASSERT_EQUAL( lwpoint_get_ordinate(&p, 'Z'), 30.0 );
431  CU_ASSERT_EQUAL( lwpoint_get_ordinate(&p, 'M'), 40.0 );
432 
433 }
double x
Definition: liblwgeom.h:354
double m
Definition: liblwgeom.h:354
double lwpoint_get_ordinate(const POINT4D *p, char ordinate)
Given a POINT4D and an ordinate number, return the value of the ordinate.
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: