dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
polarst.c File Reference
#include <math.h>
#include "polarst.h"

Go to the source code of this file.

Macros

#define PI   3.14159265358979323e0 /* PI */
 
#define PI_OVER_2   (PI / 2.0)
 
#define TWO_PI   (2.0 * PI)
 
#define POLAR_POW(EsSin)   pow((1.0 - EsSin) / (1.0 + EsSin), es_OVER_2)
 

Functions

int Set_Polar_Stereographic_Parameters (double a, double f, double Latitude_of_True_Scale, double longitude_Down_from_Pole, double False_Easting, double False_Northing)
 
void Get_Polar_Stereographic_Parameters (double *a, double *f, double *Latitude_of_True_Scale, double *longitude_Down_from_Pole, double *False_Easting, double *False_Northing)
 
int Convert_Geodetic_To_Polar_Stereographic (double Latitude, double longitude, double *Easting, double *Northing)
 
int Convert_Polar_Stereographic_To_Geodetic (double Easting, double Northing, double *Latitude, double *longitude)
 

Variables

const double PI_Over_4 = (PI / 4.0)
 
static double Polar_a = 6378137.0
 
static double Polar_f = 1 / 298.257223563
 
static double es = 0.08181919084262188000
 
static double es_OVER_2 = .040909595421311
 
static double Southern_Hemisphere = 0
 
static double tc = 1.0
 
static double e4 = 1.0033565552493
 
static double Polar_a_mc = 6378137.0
 
static double two_Polar_a = 12756274.0
 
static double Polar_Origin_Lat = ((PI * 90) / 180)
 
static double Polar_Origin_int = 0.0
 
static double Polar_False_Easting = 0.0
 
static double Polar_False_Northing = 0.0
 
static double Polar_Delta_Easting = 12713601.0
 
static double Polar_Delta_Northing = 12713601.0
 

Macro Definition Documentation

#define PI   3.14159265358979323e0 /* PI */

Definition at line 110 of file polarst.c.

#define PI_OVER_2   (PI / 2.0)

Definition at line 111 of file polarst.c.

#define POLAR_POW (   EsSin)    pow((1.0 - EsSin) / (1.0 + EsSin), es_OVER_2)

Definition at line 113 of file polarst.c.

#define TWO_PI   (2.0 * PI)

Definition at line 112 of file polarst.c.

Function Documentation

int Convert_Geodetic_To_Polar_Stereographic ( double  Latitude,
double  longitude,
double *  Easting,
double *  Northing 
)

Definition at line 305 of file polarst.c.

int Convert_Polar_Stereographic_To_Geodetic ( double  Easting,
double  Northing,
double *  Latitude,
double *  longitude 
)

Definition at line 404 of file polarst.c.

void Get_Polar_Stereographic_Parameters ( double *  a,
double *  f,
double *  Latitude_of_True_Scale,
double *  longitude_Down_from_Pole,
double *  False_Easting,
double *  False_Northing 
)

Definition at line 275 of file polarst.c.

int Set_Polar_Stereographic_Parameters ( double  a,
double  f,
double  Latitude_of_True_Scale,
double  longitude_Down_from_Pole,
double  False_Easting,
double  False_Northing 
)

Definition at line 154 of file polarst.c.

Variable Documentation

double e4 = 1.0033565552493
static

Definition at line 129 of file polarst.c.

double es = 0.08181919084262188000
static

Definition at line 125 of file polarst.c.

double es_OVER_2 = .040909595421311
static

Definition at line 126 of file polarst.c.

const double PI_Over_4 = (PI / 4.0)

Definition at line 120 of file polarst.c.

double Polar_a = 6378137.0
static

Definition at line 123 of file polarst.c.

double Polar_a_mc = 6378137.0
static

Definition at line 130 of file polarst.c.

double Polar_Delta_Easting = 12713601.0
static

Definition at line 140 of file polarst.c.

double Polar_Delta_Northing = 12713601.0
static

Definition at line 141 of file polarst.c.

double Polar_f = 1 / 298.257223563
static

Definition at line 124 of file polarst.c.

double Polar_False_Easting = 0.0
static

Definition at line 136 of file polarst.c.

double Polar_False_Northing = 0.0
static

Definition at line 137 of file polarst.c.

double Polar_Origin_int = 0.0
static

Definition at line 135 of file polarst.c.

double Polar_Origin_Lat = ((PI * 90) / 180)
static

Definition at line 134 of file polarst.c.

double Southern_Hemisphere = 0
static

Definition at line 127 of file polarst.c.

double tc = 1.0
static

Definition at line 128 of file polarst.c.

double two_Polar_a = 12756274.0
static

Definition at line 131 of file polarst.c.