sac-format 0.6.0 C++20 SAC (Seismic Analysis Code) File Library |
Defines a geographic coordinant (degrees/radians) More...
#include <sac_format.hpp>
Public Member Functions | |
coord () noexcept | |
Default coordinate constructor. | |
coord (double value, bool degrees=true) noexcept | |
Coordinate constructor. | |
double | degrees () const noexcept |
Get coordinate value in decimal degrees. | |
double | radians () const noexcept |
Get coordinate value in radians. | |
void | degrees (double value) noexcept |
Set coordinate value using decimal degrees. | |
void | radians (double value) noexcept |
Set coordainate value using radians. | |
Private Attributes | |
double | deg {} |
coordinate value in decimal degrees. | |
double | rad {} |
coordinate value in radians. | |
Defines a geographic coordinant (degrees/radians)
| noexcept |
Default coordinate constructor.
Coordinate constructor.
[in] | value | Double value of coordinate |
[in] | degrees | Boolean value, true if degrees (false = radians). |
| inlinenoexcept |
Get coordinate value in decimal degrees.
Set coordinate value using decimal degrees.
[in] | value | double coordinate in decimal degrees. |
| inlinenoexcept |
Get coordinate value in radians.
Set coordainate value using radians.
[in] | value | double coordinate in radians. |
| private |
coordinate value in decimal degrees.
| private |
coordinate value in radians.