1 #include <gtest/gtest.h> 49 EXPECT_EQ(90, lonCopy.degrees());
110 EXPECT_EQ(-450, lon.
degrees());
125 TEST(
Longitude, GetNegative450DegreesPW) {
const double Null
Value for an Isis Null pixel.
const double PI
The mathematical constant PI.
double positiveWest(Angle::Units units=Angle::Radians) const
Get the longitude in the PositiveWest coordinate system.
Longitude force180Domain() const
This returns a longitude that is constricted to -180 to 180 degrees.
Longitude force360Domain() const
This returns a longitude that is constricted to 0-360 degrees.
double degrees() const
Get the angle in units of Degrees.
As the longitude increases the actual position is more west.
void setPositiveEast(double longitude, Angle::Units units=Angle::Radians)
Set the longitude given a value in the PositiveEast longitude system.
This class is designed to encapsulate the concept of a Longitude.
Degrees are generally considered more human readable, 0-360 is one circle, however most math does not...
As the longitude increases the actual position is more east.
double positiveEast(Angle::Units units=Angle::Radians) const
Get the longitude in the PositiveEast coordinate system.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
void setPositiveWest(double longitude, Angle::Units units=Angle::Radians)
Set the longitude given a value in the PositiveWest longitude system.
As the longitude increases the actual position is more west.
Namespace for ISIS/Bullet specific routines.
bool inRange(Longitude min, Longitude max) const
Checks if this longitude value is within the given range.
Radians are generally used in mathematical equations, 0-2*PI is one circle, however these are more di...