polar3d.hxx File Reference

Routines to deal with polar math and transformations. More...

#include <simgear/math/point3d.hxx>
#include "SGMath.hxx"

Go to the source code of this file.

Functions

Point3D calc_gc_lon_lat (const Point3D &orig, double course, double dist)
 Calculate new lon/lat given starting lon/lat, and offset radial, and distance.
void calc_gc_course_dist (const Point3D &start, const Point3D &dest, double *course, double *dist)
 Calculate course/dist given two spherical points.

Detailed Description

Routines to deal with polar math and transformations.

Definition in file polar3d.hxx.


Function Documentation

void calc_gc_course_dist ( const Point3D start,
const Point3D dest,
double *  course,
double *  dist 
) [inline]

Calculate course/dist given two spherical points.

Parameters:
start starting point
dest ending point
course resulting course
dist resulting distance

Definition at line 59 of file polar3d.hxx.

Point3D calc_gc_lon_lat ( const Point3D orig,
double  course,
double  dist 
) [inline]

Calculate new lon/lat given starting lon/lat, and offset radial, and distance.

NOTE: starting point is specifed in radians, distance is specified in meters (and converted internally to radians) ... assumes a spherical world.

Parameters:
orig specified in polar coordinates
course offset radial
dist offset distance
Returns:
destination point in polar coordinates

Definition at line 48 of file polar3d.hxx.


Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1