![]() |
siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
|
RAII handle to a Star (opaque Rust object). More...
#include <siderust/bodies.hpp>
Public Member Functions | |
| Star ()=default | |
| ~Star () | |
| Star (Star &&o) noexcept | |
| Star & | operator= (Star &&o) noexcept |
| Star (const Star &)=delete | |
| Star & | operator= (const Star &)=delete |
| operator bool () const | |
| Whether the handle is valid. | |
| const SiderustStar * | c_handle () const |
| Access the raw C handle (for passing to altitude functions). | |
| std::string | name () const |
| double | distance_ly () const |
| double | mass_solar () const |
| double | radius_solar () const |
| double | luminosity_solar () const |
Static Public Member Functions | |
| static Star | catalog (const std::string &name) |
| Look up a star from the built-in catalog. | |
| static Star | create (std::string name, StellarProperties properties, spherical::direction::ICRS position, Time< TT, JD > epoch, std::optional< ProperMotion > pm=std::nullopt) |
| Create a custom star. | |
RAII handle to a Star (opaque Rust object).
Non-copyable; move-only. Released on destruction.
Definition at line 176 of file bodies.hpp.
|
inline |
Definition at line 183 of file bodies.hpp.
|
inlinenoexcept |
Definition at line 189 of file bodies.hpp.
|
delete |
|
inline |
Access the raw C handle (for passing to altitude functions).
Definition at line 206 of file bodies.hpp.
Referenced by siderust::star_altitude::altitude_at(), and siderust::star_altitude::azimuth_at().
|
inlinestatic |
Look up a star from the built-in catalog.
Supported: "VEGA", "SIRIUS", "POLARIS", "CANOPUS", "ARCTURUS", "RIGEL", "BETELGEUSE", "PROCYON", "ALDEBARAN", "ALTAIR".
Definition at line 216 of file bodies.hpp.
References siderust::check_status(), name(), and Star().
Referenced by siderust::ALDEBARAN(), siderust::ALTAIR(), siderust::ARCTURUS(), siderust::BETELGEUSE(), siderust::CANOPUS(), siderust::POLARIS(), siderust::PROCYON(), siderust::RIGEL(), siderust::SIRIUS(), and siderust::VEGA().
|
inlinestatic |
Create a custom star.
| name | Star name. |
| properties | Distance and stellar properties. |
| position | ICRS direction. |
| epoch | Epoch of coordinates. |
| pm | Optional proper motion. |
Definition at line 231 of file bodies.hpp.
References siderust::check_status(), siderust::spherical::Direction< F >::dec(), siderust::StellarProperties::distance, siderust::StellarProperties::luminosity, siderust::StellarProperties::mass, name(), siderust::spherical::Direction< F >::ra(), siderust::StellarProperties::radius, Star(), siderust::SolarMass::value, siderust::SolarRadius::value, and siderust::SolarLuminosity::value.
|
inline |
Definition at line 258 of file bodies.hpp.
|
inline |
Definition at line 261 of file bodies.hpp.
|
inline |
Definition at line 259 of file bodies.hpp.
|
inline |
Definition at line 251 of file bodies.hpp.
References siderust::check_status().
Referenced by catalog(), create(), and siderust::StarTarget::name().
|
inlineexplicit |
Whether the handle is valid.
Definition at line 203 of file bodies.hpp.
Definition at line 190 of file bodies.hpp.
|
inline |
Definition at line 260 of file bodies.hpp.