LSSTApplications  17.0+10,17.0+57,17.0+99,18.0.0+12,18.0.0+21,18.0.0+4,18.0.0+48,18.0.0-2-ge43143a+9,18.1.0-1-g0001055+5,18.1.0-1-g03d53ef,18.1.0-1-g1349e88+23,18.1.0-1-g2505f39+18,18.1.0-1-g380d4d4+22,18.1.0-1-g5315e5e,18.1.0-1-g5e4b7ea+7,18.1.0-1-g7e8fceb,18.1.0-1-g85f8cd4+19,18.1.0-1-g9a6769a+9,18.1.0-1-ga1a4c1a+18,18.1.0-1-gd55f500+12,18.1.0-12-g42eabe8e+5,18.1.0-14-gd04256d+10,18.1.0-15-gc153667b+4,18.1.0-16-g069e110+4,18.1.0-16-g27f8efa26,18.1.0-2-gfbf3545+3,18.1.0-2-gfefb8b5+12,18.1.0-3-g52aa583+9,18.1.0-3-g62b5e86+9,18.1.0-3-g8f4a2b1+13,18.1.0-3-g9bc06b8+3,18.1.0-3-gb69f684+4,18.1.0-4-g1ee41a7,18.1.0-5-g6dbcb01+9,18.1.0-5-gbd1decb+1,18.1.0-5-gc286bb7,18.1.0-6-g87475ad+3,18.1.0-6-gd05e160+4,18.1.0-7-gebc0338+4,18.1.0-9-gae7190a+5,w.2019.37
LSSTDataManagementBasePackage
orientation.h
Go to the documentation of this file.
1 /*
2  * LSST Data Management System
3  * Copyright 2014-2015 AURA/LSST.
4  *
5  * This product includes software developed by the
6  * LSST Project (http://www.lsst.org/).
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the LSST License Statement and
19  * the GNU General Public License along with this program. If not,
20  * see <https://www.lsstcorp.org/LegalNotices/>.
21  */
22 
23 #ifndef LSST_SPHGEOM_ORIENTATION_H_
24 #define LSST_SPHGEOM_ORIENTATION_H_
25 
28 
29 #include "UnitVector3d.h"
30 
31 
32 namespace lsst {
33 namespace sphgeom {
34 
42 int orientationExact(Vector3d const & a,
43  Vector3d const & b,
44  Vector3d const & c);
45 
58 int orientation(UnitVector3d const & a,
59  UnitVector3d const & b,
60  UnitVector3d const & c);
61 
63 int orientationX(UnitVector3d const & b, UnitVector3d const & c);
64 
66 int orientationY(UnitVector3d const & b, UnitVector3d const & c);
67 
69 int orientationZ(UnitVector3d const & b, UnitVector3d const & c);
70 
71 }} // namespace lsst::sphgeom
72 
73 #endif // LSST_SPHGEOM_ORIENTATION_H_
int orientation(UnitVector3d const &a, UnitVector3d const &b, UnitVector3d const &c)
orientation computes and returns the orientations of 3 unit vectors a, b and c.
Definition: orientation.cc:135
table::Key< int > b
int orientationZ(UnitVector3d const &b, UnitVector3d const &c)
orientationZ(b, c) is equivalent to orientation(UnitVector3d::Z(), b, c).
Definition: orientation.cc:237
table::Key< int > a
int orientationExact(Vector3d const &a, Vector3d const &b, Vector3d const &c)
orientationExact computes and returns the orientations of 3 vectors a, b and c, which need not be nor...
Definition: orientation.cc:76
This file declares a class for representing unit vectors in ℝ³.
A base class for image defects.
int orientationY(UnitVector3d const &b, UnitVector3d const &c)
orientationY(b, c) is equivalent to orientation(UnitVector3d::Y(), b, c).
Definition: orientation.cc:232
int orientationX(UnitVector3d const &b, UnitVector3d const &c)
orientationX(b, c) is equivalent to orientation(UnitVector3d::X(), b, c).
Definition: orientation.cc:227