Skip to content

Commit

Permalink
Add class descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
vahancho committed Mar 10, 2021
1 parent 3092271 commit 34646e6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/coordinate.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,32 @@ class Coordinate
double m_degrees;
};

//! Implements the latitude - geographic coordinate that specifies the north–south
//! position of a point on the Earth's surface.
class Latitude : public Coordinate
{
public:
//! Constructs a latitude object.
/*!
\param degree Decimal degrees in the range from 0° to (+/–)90°
\throws std::out_of_range
*/
Latitude(double degree);
};

//! Implements the longitude - the measurement east or west of the prime meridian.
class Longitude : public Coordinate
{
public:
//! Constructs a longitude object.
/*!
\param degree Decimal degrees in the range from 0° to (+/–)180°
\throws std::out_of_range
*/
Longitude(double degree);
};

}

#endif // COORDINATE_H

0 comments on commit 34646e6

Please sign in to comment.