LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
22 #ifndef LSST_GEOM_SPHEREPOINT_H_
23 #define LSST_GEOM_SPHEREPOINT_H_
165 operator sphgeom::LonLat() const noexcept;
227 Angle operator[](
size_t index) const;
240 return fabs(_latitude) >=
HALFPI;
373 void _set(sphgeom::UnitVector3d const& unitVector);
SpherePoint averageSpherePoint(std::vector< SpherePoint > const &coords)
Return the average of a list of coordinates.
Point2D getPosition(AngleUnit unit) const noexcept
Return longitude, latitude as a Point2D object.
lsst::geom::SpherePoint SpherePoint
This file declares a class for representing unit vectors in ℝ³.
std::size_t hash_value() const noexcept
Return a hash of this object.
LonLat represents a spherical coordinate (longitude/latitude angle) pair.
Angle separation(SpherePoint const &other) const noexcept
Angular distance between two points.
SpherePoint() noexcept
Construct a SpherePoint with "nan" for longitude and latitude.
Angle getLongitude() const noexcept
The longitude of this point.
SpherePoint(SpherePoint &&other) noexcept
Create a copy of a SpherePoint.
size_t operator()(argument_type const &x) const noexcept
std::pair< Angle, Angle > getTangentPlaneOffset(SpherePoint const &other) const
Get the offset from a tangent plane centered at this point to another point.
Angle getRa() const noexcept
Synonym for getLongitude.
Vector3d is a vector in ℝ³ with components stored in double precision.
UnitVector3d is a unit vector in ℝ³ with components stored in double precision.
sphgeom::UnitVector3d getVector() const noexcept
A unit vector representation of this point.
Angle bearingTo(SpherePoint const &other) const
Orientation at this point of the great circle arc to another point.
SpherePoint rotated(SpherePoint const &axis, Angle const &amount) const noexcept
Return a point rotated from this one around an axis.
Angle getDec() const noexcept
Synonym for getLatitude.
This file declares a class for representing vectors in ℝ³.
ItemVariant const * other
bool atPole() const noexcept
true if this point is either coordinate pole.
A base class for image defects.
SpherePoint(SpherePoint const &other) noexcept
Create a copy of a SpherePoint.
A class used to convert scalar POD types such as double to Angle.
A class representing an angle.
Angle getLatitude() const noexcept
The latitude of this point.
constexpr AngleUnit radians
constant with units of radians
bool isFinite() const noexcept
true if this point is a well-defined position.
table::Key< lsst::geom::Angle > longitude
Point in an unspecified spherical coordinate system.
table::Key< lsst::geom::Angle > latitude
SpherePoint offset(Angle const &bearing, Angle const &amount) const
Return a point offset from this one along a great circle.