LSSTApplications
12.1-5-gbdcc3ab+2,15.0+13,15.0+26,15.0-1-g19261fa+17,15.0-1-g60afb23+26,15.0-1-g615e0bb+18,15.0-1-g788a293+26,15.0-1-ga91101e+26,15.0-1-gae1598d+12,15.0-1-gd076f1f+24,15.0-1-gdf18595+5,15.0-1-gf4f1c34+12,15.0-11-g7db6e543+4,15.0-12-g3681e7a+4,15.0-15-gc15de322,15.0-16-g83b84f4,15.0-2-g100d730+19,15.0-2-g1f9c9cf+4,15.0-2-g8aea5f4+1,15.0-2-gf38729e+21,15.0-29-ga12a2b06e,15.0-3-g11fe1a0+14,15.0-3-g707930d+3,15.0-3-g9103c06+12,15.0-3-gd3cbb57+3,15.0-4-g2d82b59,15.0-4-g535e784+10,15.0-4-g92ca6c3+4,15.0-4-gf906033+2,15.0-5-g23e394c+14,15.0-5-g4be42a9,15.0-6-g69628aa,15.0-6-g86e3f3d+1,15.0-6-gfa9b38f+4,15.0-7-g949993c+3,15.0-8-g67a62d3+1,15.0-8-gcf05001+1,15.0-9-g1e7c341+1,w.2018.21
LSSTDataManagementBasePackage
|
A CRTP base class for coordinate objects. More...
#include <CoordinateBase.h>
Public Types | |
typedef T | Element |
typedef Eigen::Matrix< T, N, 1, Eigen::DontAlign > | EigenVector |
Public Member Functions | |
CoordinateBase (CoordinateBase const &)=default | |
CoordinateBase (CoordinateBase &&)=default | |
CoordinateBase & | operator= (CoordinateBase const &)=default |
CoordinateBase & | operator= (CoordinateBase &&)=default |
~CoordinateBase ()=default | |
T & | operator[] (int n) |
T const & | operator[] (int n) const |
T & | coeffRef (int n) |
T const & | coeffRef (int n) const |
EigenVector const & | asEigen () const |
Return a fixed-size Eigen representation of the coordinate object. More... | |
Static Public Attributes | |
static int const | dimensions = N |
Protected Member Functions | |
CoordinateBase (T val=static_cast< T >(0)) | |
Initialize all elements to a scalar. More... | |
template<typename Vector > | |
CoordinateBase (Eigen::MatrixBase< Vector > const &vector) | |
Initialize all elements from an N-d Eigen vector. More... | |
void | _swap (CoordinateBase &other) |
Protected Attributes | |
EigenVector | _vector |
Related Functions | |
(Note that these are not member functions.) | |
template<typename Derived , typename T , int N> | |
bool | allclose (CoordinateBase< Derived, T, N > const &a, CoordinateBase< Derived, T, N > const &b, T rtol=static_cast< T >(1E-5), T atol=static_cast< T >(1E-8)) |
Floating-point comparison with tolerance. More... | |
A CRTP base class for coordinate objects.
CoordinateBase has partial specializations for 2 and 3 dimensions so its subclasses don't have to.
Definition at line 52 of file CoordinateBase.h.
typedef Eigen::Matrix<T, N, 1, Eigen::DontAlign> lsst::afw::geom::CoordinateBase< Derived, T, N >::EigenVector |
Definition at line 56 of file CoordinateBase.h.
typedef T lsst::afw::geom::CoordinateBase< Derived, T, N >::Element |
Definition at line 54 of file CoordinateBase.h.
|
default |
|
default |
|
default |
|
inlineexplicitprotected |
Initialize all elements to a scalar.
A public constructor with the same signature is expected for subclasses.
Definition at line 83 of file CoordinateBase.h.
|
inlineexplicitprotected |
Initialize all elements from an N-d Eigen vector.
A public constructor with the same signature is expected for subclasses.
Definition at line 91 of file CoordinateBase.h.
|
inlineprotected |
Definition at line 93 of file CoordinateBase.h.
|
inline |
Return a fixed-size Eigen representation of the coordinate object.
The fact that this returns by const reference rather than by value should not be considered part of the API; this is merely an optimization enabled by the implementation.
Definition at line 75 of file CoordinateBase.h.
|
inline |
Definition at line 66 of file CoordinateBase.h.
|
inline |
Definition at line 67 of file CoordinateBase.h.
|
default |
|
default |
|
inline |
Definition at line 64 of file CoordinateBase.h.
|
inline |
Definition at line 65 of file CoordinateBase.h.
|
related |
Floating-point comparison with tolerance.
Interface, naming, and default tolerances matches Numpy.
Definition at line 32 of file CoordinateBase.cc.
|
protected |
Definition at line 94 of file CoordinateBase.h.
|
static |
Definition at line 55 of file CoordinateBase.h.