SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
c
d
e
f
h
i
k
l
m
n
r
s
t
Properties
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Functions
b
c
e
f
g
i
j
m
o
p
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
v
w
Typedefs
a
c
h
j
o
s
t
Enumerations
a
c
d
e
h
s
t
w
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
p
r
s
t
u
v
Macros
a
b
e
f
g
i
l
m
o
p
s
t
u
w
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
SLMat3.h
SLMath.h
SLVec3.h
SLMat3< SLfloat >
SLVec3< SLfloat >
SLAlgo
Collection of algorithms that may should be integrated into other namespaces.
Definition:
SLAlgo.cpp:15
SLAlgo::estimateHorizon
bool estimateHorizon(const SLMat3f &enuRs, const SLMat3f &sRc, SLVec3f &horizon)
Definition:
SLAlgo.cpp:17
SLAlgo::geoDegMinSec2Decimal
T geoDegMinSec2Decimal(int degrees, int minutes, T seconds)
convert geodetic datum defined in degrees, minutes and seconds to decimal
Definition:
SLAlgo.cpp:45
modules
math
source
SLAlgo.h
Generated by
1.9.1