An endpoint for SpherePoint.
More...
#include <Endpoint.h>
An endpoint for SpherePoint.
A SpherePointEndpoint always has 2 axes: longitude, latitude
Definition at line 318 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
-
◆ ~SpherePointEndpoint()
| virtual lsst::afw::geom::SpherePointEndpoint::~SpherePointEndpoint |
( |
| ) |
|
|
virtualdefault |
◆ _assertNAxes()
◆ _getNAxes() [1/3]
◆ _getNAxes() [2/3]
◆ _getNAxes() [3/3]
◆ _getNPoints()
◆ arrayFromData()
| virtual Array lsst::afw::geom::SpherePointEndpoint::arrayFromData |
( |
ndarray::Array< double, 2, 2 > const & |
data | ) |
const |
|
overridevirtual |
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< SpherePoint, std::vector< SpherePoint > >.
◆ dataFromArray()
| virtual 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< SpherePoint, std::vector< SpherePoint > >.
◆ dataFromPoint()
| virtual 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 359 of file Endpoint.h.
◆ getNAxes()
◆ getNPoints()
◆ makeFrame()
◆ normalizeFrame()
◆ operator!=()
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==()
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.
◆ pointFromData()
| virtual Point lsst::afw::geom::SpherePointEndpoint::pointFromData |
( |
std::vector< double > const & |
data | ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: