LSST Applications g04a91732dc+146a938ab0,g07dc498a13+80b84b0d75,g0fba68d861+0decac7526,g1409bbee79+80b84b0d75,g1a7e361dbc+80b84b0d75,g1fd858c14a+f6e422e056,g20f46db602+483a84333a,g21d47ad084+4a6cd485de,g35bb328faa+fcb1d3bbc8,g42c1b31a95+a1301e4c20,g4d39ba7253+9b833be27e,g4e0f332c67+5d362be553,g53246c7159+fcb1d3bbc8,g60b5630c4e+9b833be27e,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g8852436030+790117df0f,g89139ef638+80b84b0d75,g8d6b6b353c+9b833be27e,g9125e01d80+fcb1d3bbc8,g989de1cb63+80b84b0d75,g9f33ca652e+9c6b68d7f3,ga9baa6287d+9b833be27e,gaaedd4e678+80b84b0d75,gabe3b4be73+1e0a283bba,gb1101e3267+9f3571abad,gb58c049af0+f03b321e39,gb90eeb9370+691e4ab549,gc741bbaa4f+5f483edd21,gcf25f946ba+790117df0f,gd24842266e+c54cdbdbd2,gd315a588df+5b65d88fe4,gd6cbbdb0b4+c8606af20c,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+c99546153d,ge278dab8ac+932305ba37,ge82c20c137+76d20ab76d,w.2025.10
LSST Data Management Base Package
|
LonLat
represents a spherical coordinate (longitude/latitude angle) pair.
More...
#include <LonLat.h>
Public Member Functions | |
LonLat () | |
This constructor creates the point with longitude and latitude angle equal to zero. | |
LonLat (NormalizedAngle lon, Angle lat) | |
This constructor creates the point with the given longitude and latitude angles. | |
LonLat (Vector3d const &v) | |
This constructor creates the point on the unit sphere corresponding to the direction of v. | |
bool | operator== (LonLat const &p) const |
bool | operator!= (LonLat const &p) const |
NormalizedAngle | getLon () const |
Angle | getLat () const |
Static Public Member Functions | |
static LonLat | fromDegrees (double lon, double lat) |
static LonLat | fromRadians (double lon, double lat) |
static Angle | latitudeOf (Vector3d const &v) |
latitudeOf returns the latitude of the point on the unit sphere corresponding to the direction of v. | |
static NormalizedAngle | longitudeOf (Vector3d const &v) |
longitudeOf returns the longitude of the point on the unit sphere corresponding to the direction of v. | |
LonLat
represents a spherical coordinate (longitude/latitude angle) pair.
This class supports conversion from a Vector3d
. All methods that accept a Vector3d
parameter shall convert from vector to longitude/latitude coordinates according to the following conventions:
|
inline |
lsst::sphgeom::LonLat::LonLat | ( | NormalizedAngle | lon, |
Angle | lat ) |
lsst::sphgeom::LonLat::LonLat | ( | Vector3d const & | v | ) |
This constructor creates the point on the unit sphere corresponding to the direction of v.
Definition at line 76 of file LonLat.cc.
|
inlinestatic |
Definition at line 57 of file LonLat.h.
|
inlinestatic |
Definition at line 62 of file LonLat.h.
|
inline |
|
inline |
latitudeOf
returns the latitude of the point on the unit sphere corresponding to the direction of v.
Definition at line 44 of file LonLat.cc.
|
static |
longitudeOf
returns the longitude of the point on the unit sphere corresponding to the direction of v.
Definition at line 56 of file LonLat.cc.
|
inline |
|
inline |