lsst.jointcal
g65d8d5e0e2+22fee61c23
src
RefStar.cc
Go to the documentation of this file.
1
// -*- LSST-C++ -*-
2
/*
3
* This file is part of jointcal.
4
*
5
* Developed for the LSST Data Management System.
6
* This product includes software developed by the LSST Project
7
* (https://www.lsst.org).
8
* See the COPYRIGHT file at the top-level directory of this distribution
9
* for details of code ownership.
10
*
11
* This program is free software: you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation, either version 3 of the License, or
14
* (at your option) any later version.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
20
*
21
* You should have received a copy of the GNU General Public License
22
* along with this program. If not, see <https://www.gnu.org/licenses/>.
23
*/
24
25
#include <algorithm>
26
#include <assert.h>
27
#include <iomanip>
28
29
#include "
lsst/jointcal/RefStar.h
"
30
31
namespace
lsst
{
32
namespace
jointcal
{
33
34
Point
RefStar::applyProperMotion
(
Point
star,
double
timeDeltaYears)
const
{
35
if
(!_properMotion) {
36
return
star;
37
}
else
{
38
return
_properMotion->apply(star, timeDeltaYears);
39
}
40
}
41
42
BaseStarList
&
Ref2Base
(
RefStarList
&This) {
return
(
BaseStarList
&)This; }
43
44
BaseStarList
*
Ref2Base
(
RefStarList
*This) {
return
(
BaseStarList
*)This; }
45
46
const
BaseStarList
&
Ref2Base
(
const
RefStarList
&This) {
return
(
const
BaseStarList
&)This; }
47
48
const
BaseStarList
*
Ref2Base
(
const
RefStarList
*This) {
return
(
BaseStarList
*)This; }
49
}
// namespace jointcal
50
}
// namespace lsst
RefStar.h
lsst::jointcal::Point
A point in a plane.
Definition:
Point.h:37
lsst::jointcal::RefStar::applyProperMotion
Point applyProperMotion(Point star, double timeDeltaYears) const
Apply proper motion correction to the input star, returning a star with PM-corrected coordinates and ...
Definition:
RefStar.cc:34
lsst::jointcal::RefStarList
Definition:
RefStar.h:87
lsst::jointcal::StarList
std::lists of Stars.
Definition:
StarList.h:58
lsst::jointcal
Definition:
Associations.h:49
lsst::jointcal::Ref2Base
BaseStarList & Ref2Base(RefStarList &This)
Definition:
RefStar.cc:42
lsst
Class for a simple mapping implementing a generic AstrometryTransform.
Generated on Tue Mar 29 2022 04:08:08 for lsst.jointcal by
1.9.2