Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Math
GreatCircleMath.hpp
1
/*
2
Modified BSD License
3
4
This file is a part of Math package and originates from:
5
http://sf.net/projects/enjomitchsorbit
6
7
Copyright (c) 2011, Szymon Ender
8
Copyright (c) ????, Edward Williams
9
All rights reserved.
10
11
Redistribution and use in source and binary forms, with or without
12
modification, are permitted provided that the following conditions are met:
13
* Redistributions of source code must retain the above copyright
14
notice, this list of conditions and the following disclaimer.
15
* Redistributions in binary form must reproduce the above copyright
16
notice, this list of conditions and the following disclaimer in the
17
documentation and/or other materials provided with the distribution.
18
* Neither the name of the <organization> nor the
19
names of its contributors may be used to endorse or promote products
20
derived from this software without specific prior written permission.
21
22
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25
DISCLAIMED. IN NO EVENT SHALL SZYMON ENDER BE LIABLE FOR ANY
26
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
29
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
*/
33
34
#ifndef GREATCIRCLEMATH_HPP_INCLUDED
35
#define GREATCIRCLEMATH_HPP_INCLUDED
36
37
namespace
EnjoLib
38
{
39
struct
Vect3;
40
struct
Geo;
41
struct
Spherical;
42
44
class
GreatCircleMath
45
{
46
public
:
48
59
Geo
CalcPointOnGC
(
double
angRatio,
const
Geo
& geoStart,
const
Geo
& geoEnd,
bool
bQuartDistOptimisation);
60
62
72
Vect3
CalcPointOnGCNumerical
(
double
angRatio,
const
Vect3
& v1,
const
Vect3
& v2);
73
75
81
double
CalcDistBetweenPoints
(
const
Geo
& geoStart,
const
Geo
& geoEnd);
82
84
91
Geo
CalcPointOnWholeGC
(
double
angRatio,
const
Geo
& geoStart );
92
93
private
:
94
};
95
}
96
97
#endif // GREATCIRCLEMATH_HPP_INCLUDED
Generated on Sat Feb 23 2013 09:37:37 by
1.8.1.2