LSSTApplications  19.0.0-13-g16625d3+12,20.0.0+1,20.0.0+22,20.0.0+23,20.0.0+26,20.0.0+28,20.0.0+3,20.0.0+4,20.0.0+5,20.0.0+7,20.0.0+8,20.0.0-1-g10df615+22,20.0.0-1-g253301a+6,20.0.0-1-g4d801e7,20.0.0-1-g596936a+28,20.0.0-1-g8a53f90+2,20.0.0-1-gc96f8cb+27,20.0.0-1-gd1c87d7+2,20.0.0-1-gdb27ee5+6,20.0.0-11-gda4966f+11,20.0.0-14-g7cb2d310,20.0.0-2-gec03fae+4,20.0.0-24-g0eb5a41+1,20.0.0-3-gd2e950e,20.0.0-4-g4a2362f,20.0.0-4-gde602ef96+5,20.0.0-4-ge48a6ca+22,20.0.0-5-gc4485221+1,20.0.0-6-g9bcb941+3,20.0.0-7-g3c4151b+4,20.0.0-7-gb92c176+1,w.2020.31
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
std::snprintf
T snprintf(T... args)
std::ostream
STL class.
Angle.h
This file declares a class for representing angles.
lsst
A base class for image defects.
Definition: imageAlgorithm.dox:1
os
std::ostream * os
Definition: Schema.cc:746
a
table::Key< int > a
Definition: TransmissionCurve.cc:466
lsst::sphgeom::Angle
Angle represents an angle in radians.
Definition: Angle.h:43
lsst::sphgeom::operator<<
std::ostream & operator<<(std::ostream &, Angle const &)
Definition: Angle.cc:34