#ifndef SIMS_HPP #define SIMS_HPP #include "utils.hpp" #include #include #include class Body { private: std::pair old_positions[200]; public: float x; float y; float vx = 1; float vy = 1; SDL_Renderer* renderer; SDL_Color color = {255, 255, 255, 255}; // white long double mass = EARTH_MASS; Body(int x_pos, int y_pos); void draw_tail(); void live(); }; void two_bodies(SDL_Renderer* renderer, Body &a, Body &b); Body create_random_body(); #endif