An endpoint for lsst::geom::SpherePoint.
More...
#include <Endpoint.h>
An endpoint for lsst::geom::SpherePoint.
A SpherePointEndpoint always has 2 axes: longitude, latitude
Definition at line 315 of file Endpoint.h.
◆ Array
◆ Point
◆ SpherePointEndpoint() [1/4]
◆ SpherePointEndpoint() [2/4]
◆ SpherePointEndpoint() [3/4]
lsst::afw::geom::SpherePointEndpoint::SpherePointEndpoint |
( |
| ) |
|
|
inlineexplicit |
◆ SpherePointEndpoint() [4/4]
lsst::afw::geom::SpherePointEndpoint::SpherePointEndpoint |
( |
int |
nAxes | ) |
|
|
explicit |
Construct a SpherePointEndpoint with nAxes specified; nAxes must equal 2.
This constructor is primarily used by Transform; other users are encouraged to use the default constructor.
- Parameters
-
[in] | nAxes | The number of axes in a point; must equal 2 |
- Exceptions
-
Definition at line 169 of file Endpoint.cc.
◆ ~SpherePointEndpoint()
lsst::afw::geom::SpherePointEndpoint::~SpherePointEndpoint |
( |
| ) |
|
|
overridedefault |
◆ _assertNAxes()
template<typename Point , typename Array >
◆ _getNAxes() [1/3]
template<typename PointT , typename ArrayT >
◆ _getNAxes() [2/3]
template<typename PointT , typename ArrayT >
◆ _getNAxes() [3/3]
template<typename PointT , typename ArrayT >
◆ _getNPoints()
template<typename PointT , typename ArrayT >
◆ arrayFromData()
Get an array of points from raw data.
- Parameters
-
[in] | data | Raw data for an array of points, as a 2-D ndarray array [nPoints, nAxes] in C order, so the in-memory view is, for example, x0, y0, x1, y1, x2, y2, ... |
- Returns
- an array of points
- Exceptions
-
Implements lsst::afw::geom::BaseEndpoint< PointT, ArrayT >.
Definition at line 205 of file Endpoint.cc.
◆ dataFromArray()
ndarray::Array< double, 2, 2 > lsst::afw::geom::SpherePointEndpoint::dataFromArray |
( |
Array const & |
arr | ) |
const |
|
overridevirtual |
Get raw data from an array of points.
- Parameters
-
- Returns
- the data as a 2-D ndarray array [nAxes, nPoints] in C order, so the in-memory view is, for example, x0, x1, x2, ..., y0, y1, y2, ...
- Exceptions
-
Implements lsst::afw::geom::BaseEndpoint< PointT, ArrayT >.
Definition at line 186 of file Endpoint.cc.
◆ dataFromPoint()
std::vector< double > lsst::afw::geom::SpherePointEndpoint::dataFromPoint |
( |
Point const & |
point | ) |
const |
|
overridevirtual |
◆ getClassPrefix()
static std::string lsst::afw::geom::SpherePointEndpoint::getClassPrefix |
( |
| ) |
|
|
inlinestatic |
Get the class name prefix, e.g. "Point2" for "Point2Endpoint".
Definition at line 356 of file Endpoint.h.
◆ getNAxes()
template<typename PointT , typename ArrayT >
◆ getNPoints() [1/2]
template<typename PointT , typename ArrayT >
◆ getNPoints() [2/2]
Return the number of points in an array.
Definition at line 207 of file Endpoint.cc.
◆ makeFrame()
◆ normalizeFrame()
◆ operator!=()
template<typename PointT , typename ArrayT >
Determine whether two endpoints do not represent the same conversion.
- Returns
- the inverse of operator==. See that operator's documentation for important caveats.
Definition at line 109 of file Endpoint.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
template<typename Point , typename Array >
Determine whether two endpoints represent the same conversion.
- Parameters
-
other | the endpoint to compare |
- Returns
true
iff this object and other
are of exactly the same class and all visible properties are identical. This implementation requires that the objects have the same number of axes.
- Warning
- Two endpoints with different implementation classes will never compare equal, even if one class is conceptually equivalent to the other (e.g., a decorator). This may cause unexpected behavior when mixing related concrete endpoint classes.
Definition at line 63 of file Endpoint.cc.
◆ pointFromData()
The documentation for this class was generated from the following files: