Holds a full coordinate object.
More...
#include <Coordinate.hpp>
|
| | Coordinate ()=default |
| |
| | Coordinate (const NdArray< double > &inCartesianVector) |
| |
| | Coordinate (const RA &inRA, const Dec &inDec) noexcept |
| |
| | Coordinate (double inRaDegrees, double inDecDegrees) |
| |
| | Coordinate (double inX, double inY, double inZ) noexcept |
| |
| | Coordinate (uint8 inRaHours, uint8 inRaMinutes, double inRaSeconds, Sign inSign, uint8 inDecDegreesWhole, uint8 inDecMinutes, double inDecSeconds) |
| |
| const Dec & | dec () const noexcept |
| |
| double | degreeSeperation (const Coordinate &inOtherCoordinate) const |
| |
| double | degreeSeperation (const NdArray< double > &inVector) const |
| |
| bool | operator!= (const Coordinate &inRhs) const noexcept |
| |
| bool | operator== (const Coordinate &inRhs) const noexcept |
| |
| void | print () const |
| |
| const RA & | ra () const noexcept |
| |
| double | radianSeperation (const Coordinate &inOtherCoordinate) const |
| |
| double | radianSeperation (const NdArray< double > &inVector) const |
| |
| std::string | str () const |
| |
| double | x () const noexcept |
| |
| NdArray< double > | xyz () const |
| |
| double | y () const noexcept |
| |
| double | z () const noexcept |
| |
Holds a full coordinate object.
◆ Coordinate() [1/6]
| nc::coordinates::Coordinate::Coordinate |
( |
| ) |
|
|
default |
◆ Coordinate() [2/6]
| nc::coordinates::Coordinate::Coordinate |
( |
double |
inRaDegrees, |
|
|
double |
inDecDegrees |
|
) |
| |
|
inline |
◆ Coordinate() [3/6]
| nc::coordinates::Coordinate::Coordinate |
( |
uint8 |
inRaHours, |
|
|
uint8 |
inRaMinutes, |
|
|
double |
inRaSeconds, |
|
|
Sign |
inSign, |
|
|
uint8 |
inDecDegreesWhole, |
|
|
uint8 |
inDecMinutes, |
|
|
double |
inDecSeconds |
|
) |
| |
|
inline |
Constructor
- Parameters
-
| inRaHours | |
| inRaMinutes | |
| inRaSeconds | |
| inSign | |
| inDecDegreesWhole | |
| inDecMinutes | |
| inDecSeconds | |
◆ Coordinate() [4/6]
| nc::coordinates::Coordinate::Coordinate |
( |
const RA & |
inRA, |
|
|
const Dec & |
inDec |
|
) |
| |
|
inlinenoexcept |
◆ Coordinate() [5/6]
| nc::coordinates::Coordinate::Coordinate |
( |
double |
inX, |
|
|
double |
inY, |
|
|
double |
inZ |
|
) |
| |
|
inlinenoexcept |
◆ Coordinate() [6/6]
| nc::coordinates::Coordinate::Coordinate |
( |
const NdArray< double > & |
inCartesianVector | ) |
|
|
inline |
◆ dec()
| const Dec& nc::coordinates::Coordinate::dec |
( |
| ) |
const |
|
inlinenoexcept |
Returns the Dec object
- Returns
- Dec
◆ degreeSeperation() [1/2]
| double nc::coordinates::Coordinate::degreeSeperation |
( |
const Coordinate & |
inOtherCoordinate | ) |
const |
|
inline |
Returns the degree seperation between the two Coordinates
- Parameters
-
- Returns
- degrees
◆ degreeSeperation() [2/2]
| double nc::coordinates::Coordinate::degreeSeperation |
( |
const NdArray< double > & |
inVector | ) |
const |
|
inline |
Returns the degree seperation between the Coordinate and the input vector
- Parameters
-
- Returns
- degrees
◆ operator!=()
| bool nc::coordinates::Coordinate::operator!= |
( |
const Coordinate & |
inRhs | ) |
const |
|
inlinenoexcept |
Not equality operator
- Parameters
-
- Returns
- bool
◆ operator==()
| bool nc::coordinates::Coordinate::operator== |
( |
const Coordinate & |
inRhs | ) |
const |
|
inlinenoexcept |
Equality operator
- Parameters
-
- Returns
- bool
◆ print()
| void nc::coordinates::Coordinate::print |
( |
| ) |
const |
|
inline |
◆ ra()
| const RA& nc::coordinates::Coordinate::ra |
( |
| ) |
const |
|
inlinenoexcept |
Returns the RA object
- Returns
- RA
◆ radianSeperation() [1/2]
| double nc::coordinates::Coordinate::radianSeperation |
( |
const Coordinate & |
inOtherCoordinate | ) |
const |
|
inline |
Returns the radian seperation between the two Coordinates
- Parameters
-
- Returns
- radians
◆ radianSeperation() [2/2]
| double nc::coordinates::Coordinate::radianSeperation |
( |
const NdArray< double > & |
inVector | ) |
const |
|
inline |
Returns the radian seperation between the Coordinate and the input vector
- Parameters
-
- Returns
- radians
◆ str()
| std::string nc::coordinates::Coordinate::str |
( |
| ) |
const |
|
inline |
Returns coordinate as a string representation
- Returns
- string
◆ x()
| double nc::coordinates::Coordinate::x |
( |
| ) |
const |
|
inlinenoexcept |
Returns the cartesian x value
- Returns
- x
◆ xyz()
| NdArray<double> nc::coordinates::Coordinate::xyz |
( |
| ) |
const |
|
inline |
◆ y()
| double nc::coordinates::Coordinate::y |
( |
| ) |
const |
|
inlinenoexcept |
Returns the cartesian y value
- Returns
- y
◆ z()
| double nc::coordinates::Coordinate::z |
( |
| ) |
const |
|
inlinenoexcept |
Returns the cartesian z value
- Returns
- z
◆ operator<<
| std::ostream& operator<< |
( |
std::ostream & |
inStream, |
|
|
const Coordinate & |
inCoord |
|
) |
| |
|
friend |
Ostream operator
- Parameters
-
- Returns
- std::ostream
The documentation for this class was generated from the following file: