#ifndef RECT_H_
#define RECT_H_
-#include <SDL2/SDL.h>
+#include <SDL.h>
#include "math/point.h"
Rect rect(float x, float y, float w, float h);
Rect rect_from_vecs(Point position, Vec size);
+Rect rect_from_points(Point p1, Point p2);
Rect rect_from_sdl(const SDL_Rect *rect);
Rect rects_overlap_area(Rect rect1, Rect rect2);
SDL_Rect rect_for_sdl(Rect rect);
+Vec rect_center(Rect rect);
+
+Vec rect_snap(Rect pivot, Rect *rect);
+Vec rect_impulse(Rect *r1, Rect *r2);
+
#endif // RECT_H_