lsst.sphgeom gb1ff1c2c53+62d12e78cb
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
lsst::sphgeom::LonLat Class Reference

#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)
 

Detailed Description

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:

Constructor & Destructor Documentation

◆ LonLat() [1/3]

lsst::sphgeom::LonLat::LonLat ( )
inline

This constructor creates the point with longitude and latitude angle equal to zero.

◆ LonLat() [2/3]

lsst::sphgeom::LonLat::LonLat ( NormalizedAngle  lon,
Angle  lat 
)

This constructor creates the point with the given longitude and latitude angles.

◆ LonLat() [3/3]

lsst::sphgeom::LonLat::LonLat ( Vector3d const &  v)

This constructor creates the point on the unit sphere corresponding to the direction of v.

Member Function Documentation

◆ latitudeOf()

Angle lsst::sphgeom::LonLat::latitudeOf ( Vector3d const &  v)
static

latitudeOf returns the latitude of the point on the unit sphere corresponding to the direction of v.

◆ longitudeOf()

NormalizedAngle lsst::sphgeom::LonLat::longitudeOf ( Vector3d const &  v)
static

longitudeOf returns the longitude of the point on the unit sphere corresponding to the direction of v.


The documentation for this class was generated from the following files: