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

CelestialObject.h

Blame
  • CelestialObject.h 358 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, Vector2 position);
    
    #endif