SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLAlgo.h
Go to the documentation of this file.
1 /**
2  * \file SLAlgo.h
3  * \brief Container for general algorithm functions
4  * \date November
5  * \remarks Please use clangformat to format the code. See more code style on
6  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
7  * \authors Michael Goettlicher, Marcus Hudritsch
8  * \copyright http://opensource.org/licenses/GPL-3.0
9  */
10 
11 #ifndef SLALGO_H
12 #define SLALGO_H
13 
14 #include <SLMath.h>
15 #include <SLMat3.h>
16 #include <SLVec3.h>
17 
18 //-----------------------------------------------------------------------------
19 //! Collection of algorithms that may should be integrated into other namespaces
20 namespace SLAlgo
21 {
22 bool estimateHorizon(const SLMat3f& enuRs, const SLMat3f& sRc, SLVec3f& horizon);
23 
24 //! convert geodetic datum defined in degrees, minutes and seconds to decimal
25 template<typename T>
26 T geoDegMinSec2Decimal(int degrees, int minutes, T seconds);
27 
28 //! Latitude Longitude Altitude (LatLonAlt), defined in Degrees, Minutes, Secondes format to decimal
29 template<typename T>
30 SLVec3<T> geoDegMinSec2Decimal(int degreesLat,
31  int minutesLat,
32  T secondsLat,
33  int degreesLon,
34  int minutesLon,
35  T secondsLon,
36  T alt);
37 
38 };
39 //-----------------------------------------------------------------------------
40 #endif
Collection of algorithms that may should be integrated into other namespaces.
Definition: SLAlgo.cpp:15
bool estimateHorizon(const SLMat3f &enuRs, const SLMat3f &sRc, SLVec3f &horizon)
Definition: SLAlgo.cpp:17
T geoDegMinSec2Decimal(int degrees, int minutes, T seconds)
convert geodetic datum defined in degrees, minutes and seconds to decimal
Definition: SLAlgo.cpp:45