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 coordinate class intended to represent absolute positions. More...
#include <CoordinateBase.h>
Public Types | |
typedef Super::EigenVector | EigenVector |
typedef T | Element |
Public Member Functions | |
Point (T val=static_cast< T >(0)) | |
Construct a Point with all elements set to the same scalar value. More... | |
Point (Point const &)=default | |
Point (Point &&)=default | |
~Point ()=default | |
Point & | operator= (Point const &)=default |
Point & | operator= (Point &&)=default |
template<typename U > | |
Point (Point< U, N > const &other) | |
Explicit converting constructor. More... | |
Point (EigenVector const &vector) | |
Construct a Point from an Eigen vector. More... | |
Point (Extent< T, N > const &other) | |
Explicit constructor from Extent. More... | |
void | swap (Point &other) |
bool | operator== (Point< T, N > const &other) const |
Standard equality comparison. More... | |
bool | operator!= (Point< T, N > const &other) const |
Standard inequality comparison. More... | |
Extent< T, N > | asExtent () const |
Cast this object to an Extent of the same numeric type and dimensionality. More... | |
void | shift (Extent< T, N > const &offset) |
Shift the point by the given offset. More... | |
void | scale (double factor) |
double | distanceSquared (PointBase< T, N > const &other) const |
std::string | toString () const |
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... | |
Named vectorized comparison functions | |
Note that these return CoordinateExpr, not bool. Unlike most arithmetic and assignment operators, scalar interoperability is provided for comparisons; expressions like if (all(point.gt(0))) ... are both ubiquitous and easy to interpret. | |
CoordinateExpr< N > | eq (Point< T, N > const &other) const |
CoordinateExpr< N > | eq (T scalar) const |
CoordinateExpr< N > | ne (Point< T, N > const &other) const |
CoordinateExpr< N > | ne (T scalar) const |
CoordinateExpr< N > | lt (Point< T, N > const &other) const |
CoordinateExpr< N > | lt (T scalar) const |
CoordinateExpr< N > | le (Point< T, N > const &other) const |
CoordinateExpr< N > | le (T scalar) const |
CoordinateExpr< N > | gt (Point< T, N > const &other) const |
CoordinateExpr< N > | gt (T scalar) const |
CoordinateExpr< N > | ge (Point< T, N > const &other) const |
CoordinateExpr< N > | ge (T scalar) const |
Arithmetic operators | |
No scalar interoperability is provided for Point arithmetic operations. | |
Extent< T, N > | operator- (Point< T, N > const &other) const |
Point< T, N > | operator- (Extent< T, N > const &other) const |
Point< T, N > | operator+ (Extent< T, N > const &other) const |
Point< T, N > & | operator+= (Extent< T, N > const &other) |
Point< T, N > & | operator-= (Extent< T, N > const &other) |
Static Public Attributes | |
static int const | dimensions |
Protected Member Functions | |
void | _swap (CoordinateBase &other) |
Protected Attributes | |
EigenVector | _vector |
Related Functions | |
(Note that these are not member functions.) | |
bool | allclose (CoordinateBase< Point< T, N >, T, N > const &a, CoordinateBase< Point< T, N >, 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 coordinate class intended to represent absolute positions.
See Operators on Point and Extent for mathematical operators on Point.
Definition at line 42 of file CoordinateBase.h.
typedef Super::EigenVector lsst::afw::geom::Point< T, N >::EigenVector |
|
inherited |
Definition at line 54 of file CoordinateBase.h.
|
inlineexplicit |
|
default |
|
default |
|
default |
|
explicit |
Explicit converting constructor.
Converting from floating point to integer rounds to the nearest integer instead of truncating. This ensures that a floating-point pixel coordinate converts to the coordinate of the pixel it lies on (assuming the floating point origin is the center of the first pixel).
Definition at line 55 of file Point.cc.
|
inlineexplicit |
|
inlineexplicit |
|
inlineprotectedinherited |
Definition at line 93 of file CoordinateBase.h.
|
inlineinherited |
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.
|
inlineinherited |
|
inlineinherited |
Definition at line 66 of file CoordinateBase.h.
|
inlineinherited |
Definition at line 67 of file CoordinateBase.h.
|
inlineinherited |
Definition at line 126 of file Point.h.
|
inherited |
Definition at line 78 of file Point.cc.
|
inlineinherited |
Definition at line 85 of file Point.h.
|
inherited |
Definition at line 113 of file Point.cc.
|
inlineinherited |
Definition at line 90 of file Point.h.
|
inherited |
Definition at line 106 of file Point.cc.
|
inlineinherited |
Definition at line 89 of file Point.h.
|
inherited |
Definition at line 99 of file Point.cc.
|
inlineinherited |
Definition at line 88 of file Point.h.
|
inherited |
Definition at line 92 of file Point.cc.
|
inlineinherited |
Definition at line 87 of file Point.h.
|
inherited |
Definition at line 85 of file Point.cc.
|
inlineinherited |
Definition at line 86 of file Point.h.
|
inlineinherited |
Standard inequality comparison.
Returns true iff any(this->ne(other));
Definition at line 64 of file Point.h.
|
inlineinherited |
Definition at line 102 of file Point.h.
|
inlineinherited |
Definition at line 108 of file Point.h.
|
inlineinherited |
Definition at line 99 of file Point.h.
|
inlineinherited |
Definition at line 105 of file Point.h.
|
inlineinherited |
Definition at line 112 of file Point.h.
|
default |
|
default |
|
inlineinherited |
Standard equality comparison.
Returns true iff all(this->eq(other));
Definition at line 57 of file Point.h.
|
inlineinherited |
Definition at line 64 of file CoordinateBase.h.
|
inlineinherited |
Definition at line 65 of file CoordinateBase.h.
|
inlineinherited |
Definition at line 124 of file Point.h.
|
inlineinherited |
Shift the point by the given offset.
Definition at line 122 of file Point.h.
|
inline |
Definition at line 189 of file Point.h.
|
inlineinherited |
|
related |
Floating-point comparison with tolerance.
Interface, naming, and default tolerances matches Numpy.
Definition at line 32 of file CoordinateBase.cc.
|
protectedinherited |
Definition at line 94 of file CoordinateBase.h.
|
staticinherited |
Definition at line 55 of file CoordinateBase.h.