|
LSST Applications g00d0e8bbd7+edbf708997,g199a45376c+5137f08352,g1fd858c14a+48cd4dd530,g228ff663f5+2051e4e242,g262e1987ae+9c6f24d2e3,g29ae962dfc+03663621e0,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3fd5ace14f+8c4d25a1ce,g47891489e3+27ba970c8a,g53246c7159+edbf708997,g5b326b94bb+db962c32ee,g64539dfbff+d237af7fd9,g67b6fd64d1+27ba970c8a,g74acd417e5+8234f56c0c,g786e29fd12+af89c03590,g87389fa792+a4172ec7da,g88cb488625+6878ed1c5e,g89139ef638+27ba970c8a,g8d7436a09f+f76ea57dde,g8ea07a8fe4+79658f16ab,g90f42f885a+6577634e1f,g97be763408+494f77a6c4,g98df359435+1750ea0126,g9b50b81019+d8f85438e7,ga2180abaac+edbf708997,ga9e74d7ce9+128cc68277,gad4c79568f+321c5e11c3,gbf99507273+edbf708997,gc2a301910b+d237af7fd9,gca7fc764a6+27ba970c8a,gcedae5159b+afaec0eb3d,gd7ef33dd92+27ba970c8a,gdab6d2f7ff+8234f56c0c,gdbb4c4dda9+d237af7fd9,ge410e46f29+27ba970c8a,ge41e95a9f2+d237af7fd9,geaed405ab2+062dfc8cdc,w.2025.45
LSST Data Management Base Package
|
A coordinate class intended to represent offsets and dimensions (3-d specialization). More...
#include <Extent.h>
Public Types | |
| typedef Super::EigenVector | EigenVector |
| typedef Super::EigenVector | EigenVector |
| typedef T | Element |
Public Member Functions | |
| Extent (T val=static_cast< T >(0)) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) | |
| Construct an Extent with all elements set to the same scalar value. | |
| Extent (EigenVector const &vector) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) | |
| Construct an Extent from an Eigen vector. | |
| Extent (Point< T, 3 > const &other) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) | |
| Explicit constructor from Point. | |
| template<typename U> | |
| Extent (Extent< U, 3 > const &other) noexcept(IS_NOTHROW_CONVERTIBLE< T, U >) | |
| Explicit constructor from Extent of different type (if allowed) | |
| template<typename U> | |
| Extent (Point< U, 3 > const &other) noexcept(IS_NOTHROW_CONVERTIBLE< T, U >) | |
| Extent (T x, T y, T z) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) | |
| Construct from three scalars. | |
| Extent (T const xyz[3]) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) | |
| Construct from a three-element array. | |
| Extent (std::tuple< T, T, T > const &xyz) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) | |
| Construct from std::tuple. | |
| Extent (Extent const &other)=default | |
| Extent (Extent &&other)=default | |
| ~Extent ()=default | |
| Extent & | operator= (Extent const &other)=default |
| Extent & | operator= (Extent &&other)=default |
| void | swap (Extent &other) noexcept |
| Extent (T val=static_cast< T >(0)) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) | |
| Construct an Extent with all elements set to the same scalar value. | |
| Extent (EigenVector const &vector) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) | |
| Construct an Extent from an Eigen vector. | |
| Extent (Point< T, N > const &other) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) | |
| Explicit constructor from Point. | |
| Extent (Extent< U, N > const &other) noexcept(IS_NOTHROW_CONVERTIBLE< T, U >) | |
| Explicit constructor from Extent of different type (if allowed) | |
| Extent (Point< U, N > const &other) noexcept(IS_NOTHROW_CONVERTIBLE< T, U >) | |
| Extent (Extent const &other)=default | |
| Extent (Extent &&other)=default | |
| ~Extent ()=default | |
| Extent & | operator= (Extent const &other)=default |
| Extent & | operator= (Extent &&other)=default |
| T | computeSquaredNorm () const |
| Return the squared L2 norm of the Extent (x^2 + y^2 + ...). | |
| T | computeNorm () const |
| Return the L2 norm of the Extent (sqrt(x^2 + y^2 + ...)). | |
| void | swap (Extent &other) noexcept |
| bool | operator== (Extent< T, N > const &other) const noexcept |
| Standard equality comparison. | |
| bool | operator!= (Extent< T, N > const &other) const noexcept |
| Standard inequality comparison. | |
| T & | operator[] (int n) |
| T const & | operator[] (int n) const |
| T & | operator[] (int n) |
| T const & | operator[] (int n) const |
| T & | coeffRef (int n) |
| T const & | coeffRef (int n) const |
| T & | coeffRef (int n) |
| T const & | coeffRef (int n) const |
| EigenVector const & | asEigen () const noexcept(IS_ELEMENT_NOTHROW_COPYABLE) |
| Return a fixed-size Eigen representation of the coordinate object. | |
| EigenVector const & | asEigen () const noexcept(IS_ELEMENT_NOTHROW_COPYABLE) |
| Return a fixed-size Eigen representation of the coordinate object. | |
Named 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(extent.gt(0))) ... are both ubiquitous and easy to interpret. | |
| CoordinateExpr< N > | eq (Extent< T, N > const &other) const noexcept |
| CoordinateExpr< N > | eq (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| CoordinateExpr< N > | ne (Extent< T, N > const &other) const noexcept |
| CoordinateExpr< N > | ne (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| CoordinateExpr< N > | lt (Extent< T, N > const &other) const noexcept |
| CoordinateExpr< N > | lt (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| CoordinateExpr< N > | le (Extent< T, N > const &other) const noexcept |
| CoordinateExpr< N > | le (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| CoordinateExpr< N > | gt (Extent< T, N > const &other) const noexcept |
| CoordinateExpr< N > | gt (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| CoordinateExpr< N > | ge (Extent< T, N > const &other) const noexcept |
| CoordinateExpr< N > | ge (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
Additive arithmetic operators | |
No scalar interoperability is provided for Extent additive arithmetic operations. | |
| Point< T, N > | operator+ (Point< T, N > const &other) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Extent< T, N > | operator+ (Extent< T, N > const &other) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Extent< T, N > | operator+ () const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Extent< T, N > | operator- (Extent< T, N > const &other) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Extent< T, N > | operator- () const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Extent< T, N > & | operator+= (Extent< T, N > const &other) noexcept(Super::IS_ELEMENT_NOTHROW_ASSIGNABLE) |
| Extent< T, N > & | operator-= (Extent< T, N > const &other) noexcept(Super::IS_ELEMENT_NOTHROW_ASSIGNABLE) |
Multiplicative arithmetic operators | |
As usual with matrices and vectors, Extent can be multiplied or divided by a scalar. | |
| Extent< T, N > | operator* (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. | |
| Extent< T, N > & | operator*= (T scalar) noexcept(Super::IS_ELEMENT_NOTHROW_ASSIGNABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. | |
| Extent< T, N > | operator/ (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. | |
| Extent< T, N > & | operator/= (T scalar) noexcept(Super::IS_ELEMENT_NOTHROW_ASSIGNABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. | |
| Point< T, N > | asPoint () const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. | |
| std::string | toString () const |
| Cast this object to an Extent of the same numeric type and dimensionality. | |
Static Public Attributes | |
| static int const | dimensions |
| static int const | dimensions |
| static bool constexpr | IS_ELEMENT_NOTHROW_COPYABLE |
| static bool constexpr | IS_ELEMENT_NOTHROW_COPYABLE |
| static bool constexpr | IS_ELEMENT_NOTHROW_ASSIGNABLE |
| static bool constexpr | IS_ELEMENT_NOTHROW_ASSIGNABLE |
Protected Member Functions | |
| void | _swap (CoordinateBase &other) noexcept |
| void | _swap (CoordinateBase &other) noexcept |
Protected Attributes | |
| EigenVector | _vector |
| EigenVector | _vector |
Related Symbols | |
(Note that these are not member symbols.) | |
| bool | allclose (CoordinateBase< Extent< T, N >, T, N > const &a, CoordinateBase< Extent< T, N >, T, N > const &b, T rtol=static_cast< T >(1E-5), T atol=static_cast< T >(1E-8)) noexcept(std::is_nothrow_copy_constructible< T >::value &&std::is_nothrow_copy_assignable< T >::value) |
| Floating-point comparison with tolerance. | |
| bool | allclose (CoordinateBase< Extent< T, N >, T, N > const &a, CoordinateBase< Extent< T, N >, T, N > const &b, T rtol=static_cast< T >(1E-5), T atol=static_cast< T >(1E-8)) noexcept(std::is_nothrow_copy_constructible< T >::value &&std::is_nothrow_copy_assignable< T >::value) |
| Floating-point comparison with tolerance. | |
A coordinate class intended to represent offsets and dimensions (3-d specialization).
See geomOps for mathematical operators on Extent.
| typedef Super::EigenVector lsst::geom::Extent< T, N >::EigenVector |
| typedef Super::EigenVector lsst::geom::Extent< T, 3 >::EigenVector |
| typedef T lsst::geom::CoordinateBase< Extent< T, N >, T, N >::Element |
Definition at line 57 of file CoordinateBase.h.
|
inlineexplicitnoexcept |
Construct an Extent with all elements set to the same scalar value.
Definition at line 314 of file Extent.h.
|
inlineexplicitnoexcept |
|
explicitnoexcept |
Explicit constructor from Point.
|
explicitnoexcept |
Explicit constructor from Extent of different type (if allowed)
|
explicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
default |
|
default |
|
default |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
explicitnoexcept |
Explicit constructor from Point.
Definition at line 223 of file Extent.cc.
|
explicitnoexcept |
Explicit constructor from Extent of different type (if allowed)
|
explicitnoexcept |
|
default |
|
default |
|
default |
|
inlineprotectednoexcept |
Definition at line 108 of file CoordinateBase.h.
|
inlineprotectednoexcept |
Definition at line 108 of file CoordinateBase.h.
|
inlinenoexcept |
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 89 of file CoordinateBase.h.
|
inlinenoexcept |
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 89 of file CoordinateBase.h.
|
noexcept |
Cast this object to an Extent of the same numeric type and dimensionality.
|
inline |
Definition at line 80 of file CoordinateBase.h.
|
inline |
Definition at line 80 of file CoordinateBase.h.
|
inline |
Definition at line 81 of file CoordinateBase.h.
|
inline |
Definition at line 81 of file CoordinateBase.h.
|
inline |
|
inline |
|
noexcept |
|
inlinenoexcept |
Definition at line 105 of file Extent.h.
|
noexcept |
|
inlinenoexcept |
Definition at line 120 of file Extent.h.
|
noexcept |
|
inlinenoexcept |
Definition at line 117 of file Extent.h.
|
noexcept |
|
inlinenoexcept |
Definition at line 114 of file Extent.h.
|
noexcept |
|
inlinenoexcept |
Definition at line 111 of file Extent.h.
|
noexcept |
|
inlinenoexcept |
Definition at line 108 of file Extent.h.
|
inlinenoexcept |
Standard inequality comparison.
Returns true iff any(this->ne(other));
Definition at line 84 of file Extent.h.
|
inlinenoexcept |
Cast this object to an Extent of the same numeric type and dimensionality.
Definition at line 160 of file Extent.h.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
default |
|
default |
|
default |
|
default |
|
inlinenoexcept |
Standard equality comparison.
Returns true iff all(this->eq(other));
Definition at line 77 of file Extent.h.
|
inline |
Definition at line 78 of file CoordinateBase.h.
|
inline |
Definition at line 78 of file CoordinateBase.h.
|
inline |
Definition at line 79 of file CoordinateBase.h.
|
inline |
Definition at line 79 of file CoordinateBase.h.
|
inlinenoexcept |
Definition at line 245 of file Extent.h.
|
inlinenoexcept |
|
inline |
Cast this object to an Extent of the same numeric type and dimensionality.
|
Floating-point comparison with tolerance.
Interface, naming, and default tolerances matches Numpy.
Definition at line 120 of file CoordinateBase.cc.
|
Floating-point comparison with tolerance.
Interface, naming, and default tolerances matches Numpy.
Definition at line 120 of file CoordinateBase.cc.
|
protected |
Definition at line 109 of file CoordinateBase.h.
|
protected |
Definition at line 109 of file CoordinateBase.h.
|
static |
Definition at line 58 of file CoordinateBase.h.
|
static |
Definition at line 58 of file CoordinateBase.h.
|
staticconstexpr |
Definition at line 61 of file CoordinateBase.h.
|
staticconstexpr |
Definition at line 61 of file CoordinateBase.h.
|
staticconstexpr |
Definition at line 60 of file CoordinateBase.h.
|
staticconstexpr |
Definition at line 60 of file CoordinateBase.h.