A rigid 3-d transform on the sphere.
More...
#include <SphereTransform.h>
|
| using | Matrix = Eigen::Matrix<double, 3, 3, Eigen::DontAlign> |
| |
|
| static SphereTransform | fit_unit_vectors (ndarray::Array< double const, 2 > const &from, ndarray::Array< double const, 2 > const &to, ndarray::Array< double const, 1 > const &weights=ndarray::Array< double const, 1 >()) |
| | Fit for the transform that best maps (in a least-squares sense) one set of unit vectors onto another.
|
| |
A rigid 3-d transform on the sphere.
Definition at line 38 of file SphereTransform.h.
◆ Matrix
◆ SphereTransform() [1/4]
| lsst::geom::SphereTransform::SphereTransform |
( |
| ) |
|
|
noexcept |
◆ SphereTransform() [2/4]
| lsst::geom::SphereTransform::SphereTransform |
( |
Matrix const & | matrix | ) |
|
|
explicitnoexcept |
Construct an SphereTransform from a matrix.
The caller is responsible for ensuring that this is an orthogonal matrix with positive determinant.
Definition at line 38 of file SphereTransform.cc.
◆ SphereTransform() [3/4]
| lsst::geom::SphereTransform::SphereTransform |
( |
SphereTransform const & | other | ) |
|
|
defaultnoexcept |
◆ SphereTransform() [4/4]
◆ ~SphereTransform()
| lsst::geom::SphereTransform::~SphereTransform |
( |
| ) |
|
|
defaultnoexcept |
◆ applyX()
| double lsst::geom::SphereTransform::applyX |
( |
double | x, |
|
|
double | y, |
|
|
double | z ) const |
|
noexcept |
Transform a 3-d unit vector 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).
Definition at line 94 of file SphereTransform.cc.
◆ applyY()
| double lsst::geom::SphereTransform::applyY |
( |
double | x, |
|
|
double | y, |
|
|
double | z ) const |
|
noexcept |
◆ applyZ()
| double lsst::geom::SphereTransform::applyZ |
( |
double | x, |
|
|
double | y, |
|
|
double | z ) const |
|
noexcept |
◆ fit_unit_vectors()
| SphereTransform lsst::geom::SphereTransform::fit_unit_vectors |
( |
ndarray::Array< double const, 2 > const & | from, |
|
|
ndarray::Array< double const, 2 > const & | to, |
|
|
ndarray::Array< double const, 1 > const & | weights = ndarray::Array<double const, 1>() ) |
|
static |
Fit for the transform that best maps (in a least-squares sense) one set of unit vectors onto another.
- Parameters
-
| [in] | from | Unit vectors the returned transform would take as inputs, with shape (N, 3). |
| [in] | to | Unit vectors the returned transform would return as output, with shape (N, 3). |
| [in] | weights | Weights for the vectors, with shape (N,). |
Definition at line 40 of file SphereTransform.cc.
◆ getMatrix()
| Matrix const & lsst::geom::SphereTransform::getMatrix |
( |
| ) |
const |
|
inlinenoexcept |
Return the matrix representation of the transform.
This is an orthogonal matrix with positive determinant that acts on 3-d unit vectors.
Definition at line 77 of file SphereTransform.h.
◆ inverted()
◆ operator()() [1/2]
◆ operator()() [2/2]
◆ operator*()
Compose two transforms.
The returned transform first applies other and then this (i.e. transform multiply just like their matrices do).
Definition at line 81 of file SphereTransform.cc.
The documentation for this class was generated from the following files: