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
Angle.cc
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 
25 
26 #include "lsst/sphgeom/Angle.h"
27 
28 #include <cstdio>
29 #include <ostream>
30 
31 namespace lsst {
32 namespace sphgeom {
33 
35  char buf[32];
36  std::snprintf(buf, sizeof(buf), "%.17g", a.asRadians());
37  return os << buf;
38 }
39 
40 }} // namespace lsst::sphgeom
table::Key< int > a
std::ostream & operator<<(std::ostream &, Angle const &)
Definition: Angle.cc:34
This file declares a class for representing angles.
A base class for image defects.
double asRadians() const
asRadians returns the value of this angle in units of radians.
Definition: Angle.h:85
Angle represents an angle in radians.
Definition: Angle.h:43
std::ostream * os
Definition: Schema.cc:746
T snprintf(T... args)
STL class.