This file contains software for some common coordinate transformations (WGS, UTM, GCC). It also contains methods for converting HPR orientations to HLA/DIS orientation values. More...
#include "cxutils/math/coordinates.h"
#include "cxutils/math/cxmath.h"
#include <iostream>
#include <iomanip>
#include <math.h>
#include <cstdio>
Go to the source code of this file.
Variables | |
const double | WGS_84_EQUATORIAL_RADIUS = 6378137 |
const double | WGS_84_ECCENTRICITY = 0.081819190842622 |
const double | WGS_84_ECCENTRICITY_SQ = 0.00669437999014 |
const double | WGS_84_ECCENTRICITY_PRIME_SQ = 0.00673949674227510014704353279764 |
(WGS_84_ECCENTRICITY_SQ/(1-WGS_84_ECCENTRICITY_SQ). | |
const double | WGS_84_SEMI_MAJOR_AXIS = 6378137.0 |
a = Semi-Major Axis = Equitorial Radius, meters | |
const double | WGS_84_SEMI_MINOR_AXIS = 6356752.314245 |
b = Semi-Minor Axis = Polar Radius, meters | |
const double | WGS_84_FLATTENING = 1.0/298.257223563 |
f = (a-b)/a ; Flattening parameter | |
const double | WGS_84_MAJOR_SQUARE = WGS_84_SEMI_MAJOR_AXIS * WGS_84_SEMI_MAJOR_AXIS |
a^2 | |
const double | WGS_84_MINOR_SQUARE = WGS_84_SEMI_MINOR_AXIS * WGS_84_SEMI_MINOR_AXIS |
b^2 | |
const double | WGS_84_ECCPRIME_SQUARE = (WGS_84_MAJOR_SQUARE - WGS_84_MINOR_SQUARE)/(WGS_84_MINOR_SQUARE) |
(a^2 - b^2)/b^2 | |
const double | EARTH_AVG_RADIUS = 6371010 |
Average radius of earth. |
This file contains software for some common coordinate transformations (WGS, UTM, GCC). It also contains methods for converting HPR orientations to HLA/DIS orientation values.
Sources Used to Develop This Code: Defense Mapping Agency. 1987b. DMA Technical Report: Supplement to Department of Defense World Geodetic System 1984 Technical Report. Part I and II. Washington, DC: Defense Mapping Agency
Koks, Don. "Using Rotations to Build Aerospace Coordinate Systems," Electronic Warfare and Radar Division Systems Sciences Laboratory, DSTO-TN-0640. http://dspace.dsto.defence.gov.au/dspace/handle/1947/3499
Author(s): Daniel Barber
Created: 30 April 2007
Copyright (c) 2009
Applied Cognition and Training in Immersive Virtual Environments
(ACTIVE) Laboratory
Institute for Simulation and Training (IST)
University of Central Florida (UCF)
All rights reserved.
Email: dbarber@ist.ucf.edu
Web: http://active.ist.ucf.edu
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of the ACTIVE LAB, IST, UCF, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE ACTIVE LAB''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL UCF BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file coordinates.cpp.
const double EARTH_AVG_RADIUS = 6371010 |
Average radius of earth.
Definition at line 69 of file coordinates.cpp.
const double WGS_84_ECCENTRICITY = 0.081819190842622 |
Definition at line 60 of file coordinates.cpp.
const double WGS_84_ECCENTRICITY_PRIME_SQ = 0.00673949674227510014704353279764 |
(WGS_84_ECCENTRICITY_SQ/(1-WGS_84_ECCENTRICITY_SQ).
Definition at line 62 of file coordinates.cpp.
const double WGS_84_ECCENTRICITY_SQ = 0.00669437999014 |
Definition at line 61 of file coordinates.cpp.
const double WGS_84_ECCPRIME_SQUARE = (WGS_84_MAJOR_SQUARE - WGS_84_MINOR_SQUARE)/(WGS_84_MINOR_SQUARE) |
(a^2 - b^2)/b^2
Definition at line 68 of file coordinates.cpp.
const double WGS_84_EQUATORIAL_RADIUS = 6378137 |
Definition at line 59 of file coordinates.cpp.
const double WGS_84_FLATTENING = 1.0/298.257223563 |
f = (a-b)/a ; Flattening parameter
Definition at line 65 of file coordinates.cpp.
const double WGS_84_MAJOR_SQUARE = WGS_84_SEMI_MAJOR_AXIS * WGS_84_SEMI_MAJOR_AXIS |
a^2
Definition at line 66 of file coordinates.cpp.
const double WGS_84_MINOR_SQUARE = WGS_84_SEMI_MINOR_AXIS * WGS_84_SEMI_MINOR_AXIS |
b^2
Definition at line 67 of file coordinates.cpp.
const double WGS_84_SEMI_MAJOR_AXIS = 6378137.0 |
a = Semi-Major Axis = Equitorial Radius, meters
Definition at line 63 of file coordinates.cpp.
const double WGS_84_SEMI_MINOR_AXIS = 6356752.314245 |
b = Semi-Minor Axis = Polar Radius, meters
Definition at line 64 of file coordinates.cpp.