![]() |
NumCpp
2.14.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Holds a Declination object. More...
#include <Celestial.hpp>
Public Types | |
enum class | Sign { NEGATIVE = 0 , POSITIVE } |
Struct Enum for positive or negative Dec angle. More... | |
Public Member Functions | |
Dec ()=default | |
Dec (double inDegrees) | |
Dec (Sign inSign, uint8 inDegrees, uint8 inMinutes, double inSeconds) noexcept | |
double | degrees () const noexcept |
uint8 | degreesWhole () const noexcept |
uint8 | minutes () const noexcept |
bool | operator!= (const Dec &inRhs) const noexcept |
bool | operator== (const Dec &inRhs) const noexcept |
void | print () const |
double | radians () const noexcept |
double | seconds () const noexcept |
Sign | sign () const noexcept |
std::string | str () const |
Friends | |
std::ostream & | operator<< (std::ostream &inStream, const Dec &inDec) |
Holds a Declination object.
Struct Enum for positive or negative Dec angle.
Enumerator | |
---|---|
NEGATIVE | |
POSITIVE |
|
default |
Default Constructor
|
inlineexplicit |
Constructor
inDegrees |
|
inlinenoexcept |
Constructor
inSign | |
inDegrees | |
inMinutes | |
inSeconds |
|
inlinenoexcept |
Get the degrees value
|
inlinenoexcept |
Get the whole degrees value
|
inlinenoexcept |
Get the minute value
Not equality operator
inRhs |
Equality operator
inRhs |
|
inline |
Prints the Dec object to the console
|
inlinenoexcept |
Get the radians value
|
inlinenoexcept |
Get the seconds value
|
inlinenoexcept |
Get the sign of the degrees (positive or negative)
|
inline |
Return the dec object as a string representation
Ostream operator
inStream | |
inDec |