A class used to convert scalar POD types such as double to Angle.
More...
#include <Angle.h>
|
| class | Angle |
| |
| template<typename T > |
| const Angle | operator* (T lhs, AngleUnit const rhs) |
| | Use AngleUnit to convert a POD (e.g. int, double) to an Angle; e.g. 180*afwGeomdegrees. More...
|
| |
A class used to convert scalar POD types such as double to Angle.
For example:
is equivalent to
Definition at line 71 of file Angle.h.
| lsst.afw.geom::AngleUnit::AngleUnit |
( |
double |
val | ) |
|
|
inlineexplicit |
| bool lsst.afw.geom::AngleUnit::operator== |
( |
AngleUnit const & |
rhs | ) |
const |
|
inline |
Definition at line 82 of file Angle.h.
83 return (
_val == rhs._val);
Use AngleUnit to convert a POD (e.g. int, double) to an Angle; e.g. 180*afwGeomdegrees.
- Parameters
-
| lhs | the value to convert |
| rhs | the conversion coefficient |
Definition at line 304 of file Angle.h.
307 BOOST_STATIC_ASSERT_MSG(std::numeric_limits<T>::is_specialized,
308 "Only numeric types may be converted to Angles using degrees/radians!");
309 return Angle(lhs*rhs._val);
| double lsst.afw.geom::AngleUnit::_val |
|
private |
The documentation for this class was generated from the following file:
- /home/lsstsw/stack/Linux64/afw/11.0.rc2+4/include/lsst/afw/geom/Angle.h