C library for Geodesics  2.1
inverse.c File Reference

A test program for geod_inverse() More...

#include <stdio.h>
#include "geodesic.h"

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

A test program for geod_inverse()

Definition in file inverse.c.

Function Documentation

◆ main()

int main ( void  )

A simple program to solve the inverse geodesic problem.

This program reads in lines with lat1, lon1, lat2, lon2 and prints out lines with azi1, azi2, s12 (for the WGS84 ellipsoid).

Definition at line 21 of file inverse.c.

References geod_geodesic::a, geod_geodesic::f, geod_init(), and geod_inverse().