Class SpherePointEndpoint¶
Defined in File Endpoint.h
Inheritance Relationships¶
Base Type¶
public lsst::afw::geom::BaseVectorEndpoint< lsst::geom::SpherePoint >(Template Class BaseVectorEndpoint)
Class Documentation¶
- 
class 
SpherePointEndpoint: public lsst::afw::geom::BaseVectorEndpoint<lsst::geom::SpherePoint>¶ An endpoint for lsst::geom::SpherePoint
A SpherePointEndpoint always has 2 axes: longitude, latitude
Public Functions
- 
SpherePointEndpoint(SpherePointEndpoint const&)¶ 
- 
SpherePointEndpoint(SpherePointEndpoint&&)¶ 
- 
SpherePointEndpoint &
operator=(SpherePointEndpoint const&)¶ 
- 
SpherePointEndpoint &
operator=(SpherePointEndpoint&&)¶ 
- 
SpherePointEndpoint()¶ Construct a SpherePointEndpoint
- 
SpherePointEndpoint(int nAxes)¶ 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
 lsst.pex.exceptions.InvalidParameterError: if nAxes != 2
- 
~SpherePointEndpoint()¶ 
- 
std::vector<double> 
dataFromPoint(Point const &point) const¶ Get raw data from a single point
- Return
 the values in the point as a vector of size NAxess
- Parameters
 [in] point: data for a single point
- Exceptions
 lsst::pex::exceptions::InvalidParameterError: if the point has the wrong number of axes
- 
ndarray::Array<double, 2, 2> 
dataFromArray(Array const &arr) const¶ Get raw data from an array of points
- Return
 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, …
- Parameters
 [in] arr: Array of points
- Exceptions
 lsst::pex::exceptions::InvalidParameterError: if the array has the wrong nAxes dimension
- 
Point 
pointFromData(std::vector<double> const &data) const¶ Get a single point from raw data
- Return
 the corresponding point
- Parameters
 [in] data: Data as a vector of length NAxes
- 
Array 
arrayFromData(ndarray::Array<double, 2, 2> const &data) const¶ Get an array of points from raw data
- Return
 an array of points
- 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, …
- Exceptions
 lsst::pex::exceptions::InvalidParameterError: if the array has the wrong nAxes dimension
- 
std::shared_ptr<ast::Frame> 
makeFrame() const¶ Create a Frame that can be used with this end point in a Transform.
Check that framePtr points to a SkyFrame and set longitude axis to 0, latitude to 1.
Public Static Functions
- 
static std::string 
getClassPrefix()¶ Get the class name prefix, e.g. “Point2” for “Point2Endpoint”.
-