LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
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. More... | |
LonLat (NormalizedAngle lon, Angle lat) | |
This constructor creates the point with the given longitude and latitude angles. More... | |
LonLat (Vector3d const &v) | |
This constructor creates the point on the unit sphere corresponding to the direction of v. More... | |
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. More... | |
static NormalizedAngle | longitudeOf (Vector3d const &v) |
longitudeOf returns the longitude of the point on the unit sphere corresponding to the direction of v. More... | |
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.
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
latitudeOf
returns the latitude of the point on the unit sphere corresponding to the direction of v.
|
static |
|
inline |
|
inline |