|
| std::ostream & | operator<< (std::ostream &os, lsst::geom::AffineTransform const &transform) |
| AffineTransform | makeAffineTransformFromTriple (Point2D const &p1, Point2D const &p2, Point2D const &p3, Point2D const &q1, Point2D const &q2, Point2D const &q3) |
| constexpr double | degToRad (double x) noexcept |
| constexpr double | radToDeg (double x) noexcept |
| constexpr double | radToArcsec (double x) noexcept |
| constexpr double | radToMas (double x) noexcept |
| constexpr double | arcsecToRad (double x) noexcept |
| constexpr double | masToRad (double x) noexcept |
| constexpr Angle | operator+ (Angle a, Angle d) noexcept |
| | Sum of two angles.
|
| constexpr Angle | operator- (Angle a, Angle d) noexcept |
| | Difference of two angles.
|
| constexpr Angle | operator* (Angle a, Angle d) noexcept |
| | Product of two angles.
|
| constexpr Angle | operator* (Angle a, double d) noexcept |
| | Product of an angle and a scalar.
|
| constexpr Angle | operator* (double d, Angle a) noexcept |
| constexpr Angle | operator* (Angle a, int d) noexcept |
| constexpr Angle | operator* (int d, Angle a) noexcept |
| constexpr Angle | operator- (Angle angle) |
| | An angle in the opposite sense.
|
| constexpr Angle | operator/ (Angle a, int d) noexcept |
| | Ratio of an angle and a scalar.
|
| constexpr Angle | operator/ (Angle a, double d) noexcept |
| | Ratio of an angle and a scalar.
|
| template<typename T> |
| constexpr double | operator/ (T const lhs, Angle rhs) noexcept=delete |
| std::ostream & | operator<< (std::ostream &s, Angle a) |
| | Print an Angle to a stream.
|
| template<typename T> |
| constexpr bool | isAngle (T) noexcept |
| | Allow a user to check if they have an angle.
|
| template<typename T> |
| constexpr Angle | operator* (T lhs, AngleUnit rhs) |
| | Use AngleUnit to convert a POD (e.g. int, double) to an Angle; e.g. 180*::degrees.
|
| std::ostream & | operator<< (std::ostream &os, Box2I const &box) |
| std::ostream & | operator<< (std::ostream &os, Box2D const &box) |
| 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)) noexcept(std::is_nothrow_copy_constructible< T >::value &&std::is_nothrow_copy_assignable< T >::value) |
| | Floating-point comparison with tolerance.
|
| template<typename Derived, typename T, int N> |
| std::ostream & | operator<< (std::ostream &os, CoordinateBase< Derived, T, N > const &coordinate) |
| template<int N> |
| bool | all (CoordinateExpr< N > const &expr) noexcept |
| | Return true if all elements are true.
|
| template<int N> |
| bool | any (CoordinateExpr< N > const &expr) noexcept |
| | Return true if any elements are true.
|
| template<typename T, int N> |
| std::size_t | hash_value (Extent< T, N > const &extent) noexcept |
| template<int N> |
| Extent< int, N > | truncate (Extent< double, N > const &input) noexcept |
| | Return the component-wise truncation (round towards zero).
|
| template<int N> |
| Extent< int, N > | floor (Extent< double, N > const &input) noexcept |
| | Return the component-wise floor (round towards more negative).
|
| template<int N> |
| Extent< int, N > | ceil (Extent< double, N > const &input) noexcept |
| | Return the component-wise ceil (round towards more positive).
|
| template<typename T, int N> |
| Extent< T, N > | operator* (T scalar, ExtentBase< T, N > const &rhs) noexcept(ExtentBase< T, N >::IS_ELEMENT_NOTHROW_COPYABLE) |
| template<int N> |
| Extent< double, N > | operator* (ExtentBase< int, N > const &lhs, double rhs) noexcept |
| template<int N> |
| void | operator*= (ExtentBase< int, N > &lhs, double rhs) noexcept |
| template<int N> |
| Extent< double, N > | operator/ (ExtentBase< int, N > const &lhs, double rhs) noexcept |
| template<int N> |
| void | operator/= (ExtentBase< int, N > &lhs, double rhs) noexcept |
| template<int N> |
| Extent< double, N > | operator* (double lhs, ExtentBase< int, N > const &rhs) noexcept |
| template<int N> |
| Extent< double, N > | operator+ (Extent< double, N > const &lhs, Extent< int, N > const &rhs) noexcept |
| template<int N> |
| Extent< double, N > & | operator+= (Extent< double, N > &lhs, Extent< int, N > const &rhs) noexcept |
| template<int N> |
| Extent< double, N > | operator- (Extent< double, N > const &lhs, Extent< int, N > const &rhs) noexcept |
| template<int N> |
| Extent< double, N > & | operator-= (Extent< double, N > &lhs, Extent< int, N > const &rhs) noexcept |
| template<int N> |
| Extent< double, N > | operator+ (Extent< int, N > const &lhs, Extent< double, N > const &rhs) noexcept |
| template<int N> |
| Extent< double, N > | operator- (Extent< int, N > const &lhs, Extent< double, N > const &rhs) noexcept |
| std::ostream & | operator<< (std::ostream &os, IntervalI const &interval) |
| std::ostream & | operator<< (std::ostream &os, IntervalD const &interval) |
| void | swap (IntervalI &a, IntervalI &b) noexcept |
| void | swap (IntervalD &a, IntervalD &b) noexcept |
| | LSST_EXCEPTION_TYPE (SingularTransformException, lsst::pex::exceptions::RuntimeError, lsst::geom::SingularTransformException) class LinearTransform final |
| | A 2D linear coordinate transformation.
|
| std::ostream & | operator<< (std::ostream &os, lsst::geom::LinearTransform const &t) |
| template<typename T, int N> |
| std::size_t | hash_value (Point< T, N > const &point) noexcept |
| template<int N> |
| Point< double, N > | operator+ (Point< double, N > const &lhs, Extent< int, N > const &rhs) noexcept |
| template<int N> |
| Point< double, N > | operator+ (Extent< int, N > const &rhs, Point< double, N > const &lhs) noexcept |
| template<int N> |
| Point< double, N > & | operator+= (Point< double, N > &lhs, Extent< int, N > const &rhs) noexcept |
| template<int N> |
| Point< double, N > | operator+ (Point< int, N > const &lhs, Extent< double, N > const &rhs) noexcept |
| template<int N> |
| Point< double, N > | operator- (Point< double, N > const &lhs, Extent< int, N > const &rhs) noexcept |
| template<int N> |
| Point< double, N > & | operator-= (Point< double, N > &lhs, Extent< int, N > const &rhs) noexcept |
| template<int N> |
| Point< double, N > | operator- (Point< int, N > const &lhs, Extent< double, N > const &rhs) noexcept |
| template<int N> |
| Extent< double, N > | operator- (Point< double, N > const &lhs, Point< int, N > const &rhs) noexcept |
| template<int N> |
| Extent< double, N > | operator- (Point< int, N > const &lhs, Point< double, N > const &rhs) noexcept |
| SpherePoint | averageSpherePoint (std::vector< SpherePoint > const &coords) |
| | Return the average of a list of coordinates.
|
| std::ostream & | operator<< (std::ostream &os, SpherePoint const &point) |
| | Print the value of a point to a stream.
|
| Eigen::Vector3d | asEigen (sphgeom::Vector3d const &vector) noexcept |
| template bool | allclose< Point2D, double, 2 > (CoordinateBase< Point2D, double, 2 > const &, CoordinateBase< Point2D, double, 2 > const &, double, double) |
| template bool | allclose< Point3D, double, 3 > (CoordinateBase< Point3D, double, 3 > const &, CoordinateBase< Point3D, double, 3 > const &, double, double) |
| template bool | allclose< Extent2D, double, 2 > (CoordinateBase< Extent2D, double, 2 > const &, CoordinateBase< Extent2D, double, 2 > const &, double, double) |
| template bool | allclose< Extent3D, double, 3 > (CoordinateBase< Extent3D, double, 3 > const &, CoordinateBase< Extent3D, double, 3 > const &, double, double) |
| std::ostream & | operator<< (std::ostream &os, LinearTransform const &t) |
| constexpr Angle | operator+ (Angle a, Angle d) noexcept |
| | Sum of two angles.
|
| constexpr Angle | operator- (Angle a, Angle d) noexcept |
| | Difference of two angles.
|
| constexpr Angle | operator* (Angle a, Angle d) noexcept |
| | Product of two angles.
|
| constexpr Angle | operator* (Angle a, double d) noexcept |
| | Product of an angle and a scalar.
|
| constexpr Angle | operator- (Angle angle) |
| | An angle in the opposite sense.
|
| constexpr Angle | operator/ (Angle a, int d) noexcept |
| | Ratio of an angle and a scalar.
|
| constexpr Angle | operator/ (Angle a, double d) noexcept |
| | Ratio of an angle and a scalar.
|
| std::ostream & | operator<< (std::ostream &s, Angle a) |
| | Print an Angle to a stream.
|
| template<typename T> |
| constexpr Angle | operator* (T lhs, AngleUnit rhs) noexcept |
| | Use AngleUnit to convert a POD (e.g. int, double) to an Angle; e.g. 180*::degrees.
|
| 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)) noexcept(std::is_nothrow_copy_constructible< T >::value &&std::is_nothrow_copy_assignable< T >::value) |
| | Floating-point comparison with tolerance.
|
| std::ostream & | operator<< (std::ostream &os, SpherePoint const &point) |
| | Print the value of a point to a stream.
|
| lsst::geom::LSST_EXCEPTION_TYPE |
( |
SingularTransformException | , |
|
|
lsst::pex::exceptions::RuntimeError | , |
|
|
lsst::geom::SingularTransformException | ) |
|
final |
A 2D linear coordinate transformation.
The transform is represented by a matrix \( \mathbf{M} \) such that
\[ \left[\begin{array}{ c }
x_f \\
y_f
\end{array}\right]
=
\mathbf{M}
\left[\begin{array}{ c }
x_i \\
y_i
\end{array}\right]
\]
where \((x_i,y_i)\) are the input coordinates and \((x_f,y_f)\) are the output coordinates.
If \( x_f(x_i,y_i) \) and \( y_f(x_i,y_i) \) are continuous differentiable functions, then
\[ \mathbf{M} = \left[\begin{array}{ c c }
\displaystyle\frac{\partial x_f}{\partial x_i} &
\displaystyle\frac{\partial x_f}{\partial y_i} \\
\displaystyle\frac{\partial y_f}{\partial x_i} &
\displaystyle\frac{\partial y_f}{\partial y_i}
\end{array}\right]
\]
evaluated at \((x_i,y_i)\).
Construct an empty (identity) LinearTransform.
Construct an LinearTransform from an Eigen::Matrix.
Return the transform matrix elements as a parameter vector
The elements will be ordered XX, YX, XY, YY
Set the transform matrix elements from a parameter vector
The parameter vector is ordered XX, YX, XY, YY
Return the inverse transform.
- Exceptions
-
| lsst::geom::SingularTransformException | if not invertible |
Return the determinant of the 2x2 matrix
Whether the transform is a no-op.
Transform a Point2D object.
This operation is equivalent to applying the LinearTransform to an lsst::geom::Extent
Transform a Extent2D object.
This operation is equivalent to applying the LinearTransform to an lsst::geom::Point
Transform a point given and returned as separate double values.
This interface is intended primarily for use in Python (where it is vectorized to support NumPy array arguments).
Derivative of (*this)(input) with respect to the transform elements (for Point).
Derivative of (*this)(input) with respect to the transform elements (for Extent);
Definition at line 35 of file LinearTransform.h.