Skip to content
Snippets Groups Projects
Select Git revision
  • dc0f2b69d5eb346a3a305ed7ee57008245a91e34
  • main default protected
2 results

CelestialObject.h

Blame
  • CelestialObject.h 393 B
    #ifndef CELESTIAL_OBJECT_H
    #define CELESTIAL_OBJECT_H
    
    #include "Vector2.h"
    #include "gfx/gfx.h"
    
    typedef struct CelestialObject CelestialObject;
    typedef struct CelestialObject {
        double mass;
        Vector2 previous_position;
        Vector2 current_position;
    } CelestialObject;
    
    CelestialObject *celestial_object_create(double mass, double semi_major_half, double orbital_eccentricity);
    
    #endif