lsst.sphgeom ge0fe5cd092+ac198e9f13
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
32namespace lsst {
33namespace sphgeom {
34
42int orientationExact(Vector3d const & a,
43 Vector3d const & b,
44 Vector3d const & c);
45
58int orientation(UnitVector3d const & a,
59 UnitVector3d const & b,
60 UnitVector3d const & c);
61
63int orientationX(UnitVector3d const & b, UnitVector3d const & c);
64
66int orientationY(UnitVector3d const & b, UnitVector3d const & c);
67
69int orientationZ(UnitVector3d const & b, UnitVector3d const & c);
70
71}} // namespace lsst::sphgeom
72
73#endif // LSST_SPHGEOM_ORIENTATION_H_
This file declares a class for representing unit vectors in ℝ³.
int orientationZ(UnitVector3d const &b, UnitVector3d const &c)
orientationZ(b, c) is equivalent to orientation(UnitVector3d::Z(), b, c).
Definition: orientation.cc:237
int orientation(UnitVector3d const &a, UnitVector3d const &b, UnitVector3d const &c)
Definition: orientation.cc:135
int orientationX(UnitVector3d const &b, UnitVector3d const &c)
orientationX(b, c) is equivalent to orientation(UnitVector3d::X(), b, c).
Definition: orientation.cc:227
int orientationExact(Vector3d const &a, Vector3d const &b, Vector3d const &c)
Definition: orientation.cc:76
int orientationY(UnitVector3d const &b, UnitVector3d const &c)
orientationY(b, c) is equivalent to orientation(UnitVector3d::Y(), b, c).
Definition: orientation.cc:232