// // shape.hpp // math // // Created by Sam Jaffe on 7/5/16. // #pragma once #include "vector.hpp" #include "math_fwd.hpp" namespace math { struct line { vec2 first, second; }; struct circle { vec2 center; float radius; }; struct quad { vec2 ll, lr, ur, ul; }; struct rectangle { operator quad() const; vec2 origin, size; }; struct square { operator rectangle() const; operator quad() const; vec2 origin; float size; }; }