PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ spheroid_init()

void spheroid_init ( SPHEROID s,
double  a,
double  b 
)

Initialize a spheroid object for use in geodetic functions.

Initialize a spheroid object for use in geodetic functions.

Definition at line 39 of file lwspheroid.c.

40 {
41  s->a = a;
42  s->b = b;
43  s->f = (a - b) / a;
44  s->e_sq = (a*a - b*b)/(a*a);
45  s->radius = (2.0 * a + b ) / 3.0;
46 }
char * s
Definition: cu_in_wkt.c:23

References s.

Referenced by geometry_distance_spheroid(), LWGEOM_distance_sphere(), test_gbox_utils(), test_lwgeom_area_sphere(), test_lwgeom_distance_sphere(), test_spheroid_area(), test_spheroid_distance(), test_tree_circ_distance(), and test_tree_circ_distance_threshold().

Here is the caller graph for this function: