147 CoordinateType latType);
174 ErrorChecking m_errors;
Defines an angle and provides unit conversions.
Definition Angle.h:45
virtual double angle(const Units &unit) const
Return angle value in desired units.
Definition Angle.cpp:289
Units
The set of usable angle measurement units.
Definition Angle.h:49
@ Radians
Radians are generally used in mathematical equations, 0-2*PI is one circle, however these are more di...
Definition Angle.h:63
Distance measurement, usually in meters.
Definition Distance.h:34
This class is designed to encapsulate the concept of a Latitude.
Definition Latitude.h:51
void setPlanetographic(double latitude, Angle::Units units=Angle::Radians)
Set the latitude given a value in the Planetographic coordinate system.
Definition Latitude.cpp:360
Latitude & operator=(const Latitude &latitudeToCopy)
This assigns another latitude to this one - making this latitude an exact duplicate of the other.
Definition Latitude.cpp:467
~Latitude()
This cleans up the Latitude class.
Definition Latitude.cpp:260
Latitude add(Angle angleToAdd, PvlGroup mapping)
Adds an angle to this latitude.
Definition Latitude.cpp:503
ErrorChecking
Some user-configurable error checking parameters.
Definition Latitude.h:71
@ ThrowAllErrors
Throw an exception if any problems are found.
Definition Latitude.h:73
@ AllowPastPole
Don't throw an exception if a latitude beyond -90/90 is found.
Definition Latitude.h:75
CoordinateType
These are the latitude coordinate systems.
Definition Latitude.h:85
@ Planetocentric
This is the universal (and default) latitude coordinate system.
Definition Latitude.h:91
@ Planetographic
This is a secondary coordinate system for latitudes.
Definition Latitude.h:103
bool inRange(Latitude min, Latitude max) const
Checks if this latitude value is within the given range.
Definition Latitude.cpp:439
void setErrorChecking(ErrorChecking errors)
Set the error checking status.
Definition Latitude.cpp:420
double planetographic(Angle::Units units=Angle::Radians) const
Get the latitude in the planetographic coordinate system.
Definition Latitude.cpp:315
Latitude()
Create a blank Latitude object without Planetographic support.
Definition Latitude.cpp:25
double planetocentric(Angle::Units units=Angle::Radians) const
Get the latitude in the planetocentric (universal) coordinate system.
Definition Latitude.cpp:282
void setPlanetocentric(double latitude, Angle::Units units=Angle::Radians)
Set the latitude given a value in the Planetocentric coordinate system.
Definition Latitude.cpp:293
ErrorChecking errorChecking() const
Get the error checking status.
Definition Latitude.cpp:407
virtual void setAngle(const double &angle, const Angle::Units &units)
Same as planetocentric.
Definition Latitude.cpp:583
Contains multiple PvlContainers.
Definition PvlGroup.h:41
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16