Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Alexander Lapshin
common
Commits
2666206d
Commit
2666206d
authored
Sep 30, 2019
by
Alexander Lapshin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
afd957f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
orb_date.cpp
utils/orb_date.cpp
+0
-24
No files found.
utils/orb_date.cpp
View file @
2666206d
...
@@ -2,30 +2,6 @@
...
@@ -2,30 +2,6 @@
#include "Propagator.h"
#include "Propagator.h"
#include <algorithm>
#include <algorithm>
template
<
bool
dir
,
typename
vartype
>
struct
cmppos
:
public
std
::
binary_function
<
vartype
,
vartype
,
bool
>
{
bool
operator
()(
vartype
s1
,
vartype
s2
)
const
{
const
TimeJD
&
v1
=
s1
.
get_date
();
const
TimeJD
&
v2
=
s2
.
get_date
();
return
(
v1
==
v2
)
?
false
:
(
v1
<
v2
)
^
dir
;
}
};
template
<
bool
dir
,
typename
vartype
>
struct
cmporb
:
public
std
::
binary_function
<
vartype
,
vartype
,
bool
>
{
bool
operator
()(
vartype
s1
,
vartype
s2
)
const
{
const
TimeJD
&
v1
=
s1
.
GetDate
();
const
TimeJD
&
v2
=
s2
.
GetDate
();
return
(
v1
==
v2
)
?
false
:
(
v1
<
v2
)
^
dir
;
}
};
std
::
vector
<
TimeJD
>
generate_dates
(
const
TimeJD
&
sdate
,
const
TimeJD
&
edate
,
double
step_sec
)
std
::
vector
<
TimeJD
>
generate_dates
(
const
TimeJD
&
sdate
,
const
TimeJD
&
edate
,
double
step_sec
)
{
{
std
::
vector
<
TimeJD
>
result
;
std
::
vector
<
TimeJD
>
result
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment