|
lsst.geom g096abc94f8+6a48825234
|
#include <Point.h>
Public Types | |
| typedef T | Element |
| typedef Eigen::Matrix< T, N, 1, Eigen::DontAlign > | EigenVector |
Public Member Functions | |
| PointBase (PointBase const &)=default | |
| PointBase (PointBase &&)=default | |
| PointBase & | operator= (PointBase const &)=default |
| PointBase & | operator= (PointBase &&)=default |
| ~PointBase ()=default | |
| bool | operator== (Point< T, N > const &other) const noexcept |
| Standard equality comparison. More... | |
| bool | operator!= (Point< T, N > const &other) const noexcept |
| Standard inequality comparison. More... | |
| T & | operator[] (int n) |
| T const & | operator[] (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. 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 noexcept |
| CoordinateExpr< N > | ne (Point< T, N > const &other) const noexcept |
| CoordinateExpr< N > | lt (Point< T, N > const &other) const noexcept |
| CoordinateExpr< N > | le (Point< T, N > const &other) const noexcept |
| CoordinateExpr< N > | gt (Point< T, N > const &other) const noexcept |
| CoordinateExpr< N > | ge (Point< T, N > const &other) const noexcept |
| CoordinateExpr< N > | eq (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| CoordinateExpr< N > | ne (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| CoordinateExpr< N > | lt (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| CoordinateExpr< N > | le (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| CoordinateExpr< N > | gt (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| CoordinateExpr< N > | ge (T scalar) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
Static Public Attributes | |
| static int const | dimensions |
| static constexpr bool | IS_ELEMENT_NOTHROW_COPYABLE |
| static constexpr bool | IS_ELEMENT_NOTHROW_ASSIGNABLE |
Protected Member Functions | |
| void | _swap (CoordinateBase &other) noexcept |
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)) noexcept(std::is_nothrow_copy_constructible< T >::value &&std::is_nothrow_copy_assignable< T >::value) |
| Floating-point comparison with tolerance. More... | |
Arithmetic operators | |
No scalar interoperability is provided for Point arithmetic operations. | |
| Extent< T, N > | operator- (Point< T, N > const &other) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. More... | |
| Point< T, N > | operator+ (Extent< T, N > const &other) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. More... | |
| Point< T, N > | operator- (Extent< T, N > const &other) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. More... | |
| Point< T, N > & | operator+= (Extent< T, N > const &other) noexcept(Super::IS_ELEMENT_NOTHROW_ASSIGNABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. More... | |
| Point< T, N > & | operator-= (Extent< T, N > const &other) noexcept(Super::IS_ELEMENT_NOTHROW_ASSIGNABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. More... | |
| Extent< T, N > | asExtent () const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. More... | |
| void | shift (Extent< T, N > const &offset) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Shift the point by the given offset. More... | |
| void | scale (double factor) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. More... | |
| double | distanceSquared (PointBase< T, N > const &other) const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) |
| Cast this object to an Extent of the same numeric type and dimensionality. More... | |
| std::string | toString () const |
| Cast this object to an Extent of the same numeric type and dimensionality. More... | |
| PointBase (T val=static_cast< T >(0)) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) | |
| Cast this object to an Extent of the same numeric type and dimensionality. More... | |
| template<typename Vector > | |
| PointBase (Eigen::MatrixBase< Vector > const &vector) | |
| Cast this object to an Extent of the same numeric type and dimensionality. More... | |
|
inherited |
Definition at line 59 of file CoordinateBase.h.
|
inherited |
Definition at line 57 of file CoordinateBase.h.
|
default |
|
default |
|
default |
|
inlineexplicitprotectednoexcept |
|
inlineexplicitprotected |
|
inlineprotectednoexceptinherited |
Definition at line 108 of file CoordinateBase.h.
|
inlinenoexceptinherited |
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 |
|
inlineinherited |
Definition at line 80 of file CoordinateBase.h.
|
inlineinherited |
Definition at line 81 of file CoordinateBase.h.
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
default |
|
default |
|
inlinenoexcept |
|
inlineinherited |
Definition at line 78 of file CoordinateBase.h.
|
inlineinherited |
Definition at line 79 of file CoordinateBase.h.
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
related |
Floating-point comparison with tolerance.
Interface, naming, and default tolerances matches Numpy.
Definition at line 120 of file CoordinateBase.cc.
|
protectedinherited |
Definition at line 109 of file CoordinateBase.h.
|
staticinherited |
Definition at line 58 of file CoordinateBase.h.
|
staticconstexprinherited |
Definition at line 61 of file CoordinateBase.h.
|
staticconstexprinherited |
Definition at line 60 of file CoordinateBase.h.