Skip to content
Snippets Groups Projects
Select Git revision
  • 46ca719226ebbc9a3124726a073a11b701c5f58c
  • live_exam_os_ubuntu default protected
2 results

helper.go

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