VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
csUtilities.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: csysutil.h,v $ $Revision: 1.17 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef csUtilities_H_
9 #define csUtilities_H_
10 
11 //
12 // \file csysutil.h This file contains coordinate conversion convenience routines.
13 //
15 #include "terrainCS/coordSystem.h"
16 #include <matrix/utmCoord.h>
17 #include <vl/utmView.h>
18 
19 #define LAT_MIN_DEGREES -90.0
20 #define LAT_MAX_DEGREES 90.0
21 #define LON_MIN_DEGREES -180
22 #define LON_MAX_DEGREES 180.0
23 
24 #define LAT_MIN_RADIANS DtDeg2Rad(LAT_MIN_DEGREES)
25 #define LAT_MAX_RADIANS DtDeg2Rad(LAT_MAX_DEGREES)
26 #define LON_MIN_RADIANS DtDeg2Rad(LON_MIN_DEGREES)
27 #define LON_MAX_RADIANS DtDeg2Rad(LON_MAX_DEGREES)
28 
29 DT_DLL_terrainCS void setDtDegMinSecFromDegrees(DtDegMinSec &dms, double deg);
30 
31 // DMS string is of format <deg>:<min>:<sec>
32 DT_DLL_terrainCS void setDtDegMinSecFromString(DtDegMinSec &dms, const char* dmsString);
33 DT_DLL_terrainCS void setLatDtDegMinSecFromString(DtDegMinSec &dms, const char* dmsString);
34 DT_DLL_terrainCS void setLonDtDegMinSecFromString(DtDegMinSec &dms, const char* dmsString);
35 
36 DT_DLL_terrainCS void setLatDtDegMinSecFromDegrees(DtDegMinSec &dms, double deg);
37 DT_DLL_terrainCS void setLonDtDegMinSecFromDegrees(DtDegMinSec &dms, double deg);
38 DT_DLL_terrainCS void setUtmOriginLatLonFromZone(long zone, double northing, double easting, double scaleFactor = 0.9996);
39 DT_DLL_terrainCS void degreesFromDegMinSec(double& deg, DtDegMinSec &dms);
40 
41 DT_DLL_terrainCS void newGeod2Utm(double lat, double lon, long *zone, double *northing, double *easting);
42 DT_DLL_terrainCS void newUtm2Geod(double northing, double easting, long zone, double *lat, double *lon);
43 
44 DT_DLL_terrainCS bool operator==(const DtDegMinSec& lhs, const DtDegMinSec& rhs);
45 DT_DLL_terrainCS bool operator!=(const DtDegMinSec& lhs, const DtDegMinSec& rhs);
46 
49 
50 #endif
51 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)