siderust-cpp
Header-only C++ wrapper for siderust
Loading...
Searching...
No Matches
siderust::Planet Struct Reference

Planet data (value type, copyable). More...

#include <siderust/bodies.hpp>

Collaboration diagram for siderust::Planet:

Static Public Member Functions

static Planet from_c (const siderust_planet_t &c)
 

Public Attributes

double mass_kg
 
double radius_km
 
Orbit orbit
 

Detailed Description

Planet data (value type, copyable).

Examples
solar_system_bodies_example.cpp.

Definition at line 68 of file bodies.hpp.

Member Function Documentation

◆ from_c()

Member Data Documentation

◆ mass_kg

double siderust::Planet::mass_kg
Examples
solar_system_bodies_example.cpp.

Definition at line 69 of file bodies.hpp.

Referenced by from_c(), and print_planet().

◆ orbit

Orbit siderust::Planet::orbit
Examples
solar_system_bodies_example.cpp.

Definition at line 71 of file bodies.hpp.

Referenced by print_planet().

◆ radius_km

double siderust::Planet::radius_km
Examples
solar_system_bodies_example.cpp.

Definition at line 70 of file bodies.hpp.

Referenced by print_planet().


The documentation for this struct was generated from the following file: