lsst.sphgeom
21.0.0+d529cf1a41
|
#include <LonLat.h>
Public Member Functions | |
LonLat () | |
LonLat (NormalizedAngle lon, Angle lat) | |
LonLat (Vector3d const &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) |
static NormalizedAngle | longitudeOf (Vector3d const &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 |
This constructor creates the point with longitude and latitude angle equal to zero.
lsst::sphgeom::LonLat::LonLat | ( | NormalizedAngle | lon, |
Angle | lat | ||
) |
This constructor creates the point with the given longitude and latitude angles.
lsst::sphgeom::LonLat::LonLat | ( | Vector3d const & | v | ) |
This constructor creates the point on the unit sphere corresponding to the direction of v.
latitudeOf
returns the latitude of the point on the unit sphere corresponding to the direction of v.
|
static |
longitudeOf
returns the longitude of the point on the unit sphere corresponding to the direction of v.